Roo/bootstrap/NavSidebarItem.js
authoredward <edward@roojs.com>
Mon, 26 Feb 2018 07:25:23 +0000 (15:25 +0800)
committeredward <edward@roojs.com>
Mon, 26 Feb 2018 07:25:23 +0000 (15:25 +0800)
Roo/bootstrap/NavSidebarItem.js

index f5cd55d..0ccff57 100644 (file)
@@ -109,7 +109,11 @@ Roo.extend(Roo.bootstrap.NavSidebarItem, Roo.bootstrap.NavItem,  {
         
         Roo.log(this.menu);
         
-        if (typeof (this.menu) != 'undefined') {
+        if(this.menu.instanceof(Roo.bootstrap.Menu)){
+            Roo.log('test');
+        }
+        
+        if (typeof (this.menu) != 'undefined' && !this.menu.instanceof(Roo.bootstrap.Menu)) {
             this.menu.parentType = this.xtype;
             this.menu.triggerEl = this.el;
             this.menu = this.addxtype(Roo.apply({}, this.menu));