Roo/bootstrap/NavSidebarItem.js
authorAlan Knowles <alan@roojs.com>
Wed, 27 Aug 2014 09:04:57 +0000 (17:04 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 27 Aug 2014 09:04:57 +0000 (17:04 +0800)
Roo/bootstrap/NavSidebarItem.js

index 2c1c309..33547b2 100644 (file)
@@ -66,10 +66,10 @@ Roo.extend(Roo.bootstrap.NavSidebarItem, Roo.bootstrap.NavItem,  {
         if (this.active) {
             cfg.cls += ' active';
         }
-        var c
+        var right = false;
         // fixme - this should handle glyphicon or ico
         if (this.glyphicon || this.icon) {
-            var c = this.glyphicon  ? ('glyphicon glyphicon-'+this.glyphicon)  : this.icon;
+            right = this.glyphicon  ? ('glyphicon glyphicon-'+this.glyphicon)  : this.icon;
             a.cn.push( { tag : 'i', cls : c });
         }