Roo/bootstrap/CheckBox.js
authoredward <edward@roojs.com>
Fri, 25 Aug 2017 06:00:45 +0000 (14:00 +0800)
committeredward <edward@roojs.com>
Fri, 25 Aug 2017 06:00:45 +0000 (14:00 +0800)
Roo/bootstrap/CheckBox.js

index 534bcc0..954b058 100644 (file)
@@ -498,13 +498,15 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input,  {
             return;
         }
         
+        var _this = this;
+        
         Roo.each(this.el.up('form').select('input[name='+this.name+']', true).elements, function(e){
             this.getActionEl().addClass(this.disabledClass);
             this.el.dom.disabled = true;
         
             e.findParent('.form-group', false, true).removeClass([_this.invalidClass, _this.validClass]);
             e.findParent('.form-group', false, true).addClass(_this.invalidClass);
-        }, this);
+        });
         
         this.disabled = true;
         this.fireEvent("disable", this);