Roo/bootstrap/NavSidebarItem.js
authorAlan Knowles <alan@roojs.com>
Mon, 21 Mar 2016 07:43:20 +0000 (15:43 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 21 Mar 2016 07:43:20 +0000 (15:43 +0800)
Roo/bootstrap/NavSidebarItem.js

index fe026da..c34fc85 100644 (file)
@@ -98,18 +98,7 @@ Roo.extend(Roo.bootstrap.NavSidebarItem, Roo.bootstrap.NavItem,  {
          
           
     },
-    
-    initEvents : function()
-    { 
-        this.el.on('click', this.onClick, this);
-       
-    
-        if(this.badge !== ''){
-            this.badgeEl = this.el.select('.badge', true).first().setVisibilityMode(Roo.Element.DISPLAY);
-        }
-        
-    },
+  
     
     onClick : function(e)
     {
@@ -183,10 +172,21 @@ Roo.extend(Roo.bootstrap.NavSidebarItem, Roo.bootstrap.NavItem,  {
         }
         
         this.badgeEl.dom.innerHTML = str;
-    }
+    },
     
    
-     
+      
+    initEvents : function()
+    { 
+        this.el.on('click', this.onClick, this);
+       
+    
+        if(this.badge !== ''){
+            this.badgeEl = this.el.select('.badge', true).first().setVisibilityMode(Roo.Element.DISPLAY);
+        }
+        
+    }
  
 });