Roo/bootstrap/Navbar.js
authorAlan Knowles <alan@roojs.com>
Thu, 21 Aug 2014 07:27:56 +0000 (15:27 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 21 Aug 2014 07:27:56 +0000 (15:27 +0800)
Roo/bootstrap/Navbar.js

index a85598b..1db40b7 100644 (file)
@@ -35,7 +35,6 @@ Roo.bootstrap.Navbar = function(config){
 Roo.extend(Roo.bootstrap.Navbar, Roo.bootstrap.Component,  {
     
     
-    bar: false,
     brand: '',
     inverse: false,
     position: '',
@@ -85,7 +84,7 @@ Roo.extend(Roo.bootstrap.Navbar, Roo.bootstrap.Component,  {
     
     getChildContainer : function()
     {
-        if (this.bar === true) {
+        if (this.el.select('.collapse').getCount()) {
             return this.el.select('.collapse',true).first();
         }