Roo/bootstrap/NavProgressItem.js
authoredward <edward@roojs.com>
Thu, 10 Mar 2016 08:46:15 +0000 (16:46 +0800)
committeredward <edward@roojs.com>
Thu, 10 Mar 2016 08:46:15 +0000 (16:46 +0800)
Roo/bootstrap/NavProgressItem.js

index 545d3c2..8e74e14 100644 (file)
@@ -122,14 +122,13 @@ Roo.extend(Roo.bootstrap.NavProgressItem, Roo.bootstrap.Component,  {
         
         this.active = state;
         
-        if (this.el.hasClass('active')) {
-            this.el.removeClass('active');
-        }
-        
         if (state) {
             this.el.addClass('active');
+            return;
         }
         
+        this.el.removeClass('active');
+        
         return;
     },
     
@@ -140,6 +139,7 @@ Roo.extend(Roo.bootstrap.NavProgressItem, Roo.bootstrap.Component,  {
         }
         
         this.disabled = state;
+        
         if (!state) {
             this.el.removeClass('disabled');
         } else if (!this.el.hasClass('disabled')) {