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

index 64e3baf..c26a62b 100644 (file)
@@ -71,7 +71,7 @@ Roo.extend(Roo.bootstrap.menu.Menu, Roo.bootstrap.Component,  {
     
     
     getChildContainer : function() {
-        if(this.isSubMenu()){
+        if(this.isSubMenu){
             return this.el;
         }
         
@@ -142,16 +142,15 @@ Roo.extend(Roo.bootstrap.menu.Menu, Roo.bootstrap.Component,  {
     
     onRender : function(ct, position)
     {
-        Roo.log(ct);
-       // Roo.log("Call onRender: " + this.xtype);
-//        this.isSubMenu = ct.hasClass('....')
+        this.isSubMenu = ct.el.hasClass('dropdown-submenu');
+        
         Roo.bootstrap.menu.Menu.superclass.onRender.call(this, ct, position);
     },
     
     initEvents : function() 
     {
         
-        if(this.isSubMenu()){
+        if(this.isSubMenu){
             return;
         }