Roo/bootstrap/menu/Menu.js
authorEdward <edward@roojs.com>
Fri, 5 Dec 2014 07:47:43 +0000 (15:47 +0800)
committerEdward <edward@roojs.com>
Fri, 5 Dec 2014 07:47:43 +0000 (15:47 +0800)
Roo/bootstrap/menu/Menu.js

index e9e9231..6e4a527 100644 (file)
@@ -140,22 +140,11 @@ Roo.extend(Roo.bootstrap.menu.Menu, Roo.bootstrap.Component,  {
         return cfg;
     },
     
-     // private
-//    onRender : function(ct, position)
-//    {
-//       // Roo.log("Call onRender: " + this.xtype);
-//        this.isSubmen = ct.hasClass('....')
-//        Roo.bootstrap.menu.Menu.superclass.onRender.call(this, ct, position);
-//   
-    
-    isSubMenu : function()
+    onRender : function(ct, position)
     {
-        if(this.parent() instanceof Roo.bootstrap.menu.Item){
-            return true;
-        }
-        
-        return false;
-        
+       // Roo.log("Call onRender: " + this.xtype);
+//        this.isSubMenu = ct.hasClass('....')
+        Roo.bootstrap.menu.Menu.superclass.onRender.call(this, ct, position);
     },
     
     initEvents : function()