Roo/bootstrap/NavGroup.js
authorEdward <edward@roojs.com>
Thu, 10 Apr 2014 05:47:32 +0000 (13:47 +0800)
committerEdward <edward@roojs.com>
Thu, 10 Apr 2014 05:47:32 +0000 (13:47 +0800)
Roo/bootstrap/NavGroup.js

index 63b1c91..74058a5 100644 (file)
@@ -11,6 +11,7 @@
  * Bootstrap NavGroup class
  * @cfg {String} align left | right
  * @cfg {Boolean} inverse false | true
+ * @cfg {Boolean} inverse false | true
  * 
  * @constructor
  * Create a new nav group
@@ -26,6 +27,7 @@ Roo.extend(Roo.bootstrap.NavGroup, Roo.bootstrap.Component,  {
     align: '',
     inverse: false,
     form: false,
+    type: false,
     
     getAutoCreate : function(){
         var cfg = Roo.apply({}, Roo.bootstrap.NavGroup.superclass.getAutoCreate.call(this));
@@ -57,10 +59,6 @@ Roo.extend(Roo.bootstrap.NavGroup, Roo.bootstrap.Component,  {
             }
         }
         
-        if (['tabs','pills'].indexOf(this.type)!==-1) {
-            cfg.cls += ' nav-' + this.type
-        }
-        
         if (this.align === 'right') {
             cfg.cls += ' navbar-right';
         }