Roo/bootstrap/CheckBox.js
authorAlan Knowles <alan@roojs.com>
Wed, 10 Jun 2015 07:51:24 +0000 (15:51 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 10 Jun 2015 07:51:24 +0000 (15:51 +0800)
Roo/bootstrap/CheckBox.js

index db1f318..0da3df2 100644 (file)
@@ -195,10 +195,16 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input,  {
         return this.el.select('input.roo-' + this.inputType,true).first();
     },
     
-    label: function()
+    labelEl: function()
     {
         return this.el.select('label.control-label',true).first();
     },
+    /* depricated... */
+    
+    label: function()
+    {
+        return this.labelEl();
+    },
     
     initEvents : function()
     {
@@ -206,6 +212,7 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input,  {
         
         this.inputEl().on('click', this.onClick,  this);
         
+        
     },
     
     onClick : function()