Roo/bootstrap/NavProgressBar.js
authoredward <edward@roojs.com>
Tue, 15 Mar 2016 05:37:01 +0000 (13:37 +0800)
committeredward <edward@roojs.com>
Tue, 15 Mar 2016 05:37:01 +0000 (13:37 +0800)
Roo/bootstrap/NavProgressBar.js

index 54eed39..929bf06 100644 (file)
@@ -71,6 +71,11 @@ Roo.extend(Roo.bootstrap.NavProgressBar, Roo.bootstrap.Component,  {
     {
         Roo.log('initEvent????');
         
+        if(this.bullets.length){
+            Roo.each(this.bullets, function(b){
+               this.addItem(b);
+            }, this);
+        }
     },
     
     onRender : function(ct, position) 
@@ -79,11 +84,7 @@ Roo.extend(Roo.bootstrap.NavProgressBar, Roo.bootstrap.Component,  {
         
         Roo.bootstrap.NavProgressBar.superclass.onRender.call(this, ct, position);
         
-        if(this.bullets.length){
-            Roo.each(this.bullets, function(b){
-               this.addItem(b);
-            }, this);
-        }
+        
         
     },