Browse Source

#3148 fixes default setting name for onEnabled to match typo name

pull/3463/head
jlukic 9 years ago
parent
commit
740b0d13e1
2 changed files with 5 additions and 4 deletions
  1. 1
      RELEASE-NOTES.md
  2. 8
      src/definitions/modules/checkbox.js

1
RELEASE-NOTES.md

@ -3,6 +3,7 @@
### Version 2.1.7 Nov 29, 2015
**Bug Fixes**
-**Popup** - Fixed issue with `onEnable` callback being defined with name `onEnabled` and `onDisable` with `onDisabled` in default settings, causing an error. To preserve backwards compatibility, the mispelled callback name has been left, but the bug has been fixed. #3148
-**Popup** - Adds `onUnplaceable` callback when element cannot be place in visible screen #3388
-**Sidebar** - Sidebar no longer includes `transform` rules on child elements, this was causing layout issues in some cases (for example dropdowns in sidebars) #3306
-**Sidebar** - Fixed css rule issue causing `very thin` sidebar to not work #3300

8
src/definitions/modules/checkbox.js

@ -268,7 +268,7 @@ $.fn.checkbox = function(parameters) {
}
module.debug('Enabling checkbox');
module.set.enabled();
settings.onEnable.call(input);
settings.onEnabled.call(input);
},
disable: function() {
@ -278,7 +278,7 @@ $.fn.checkbox = function(parameters) {
}
module.debug('Disabling checkbox');
module.set.disabled();
settings.onDisable.call(input);
settings.onDisabled.call(input);
},
get: {
@ -781,8 +781,8 @@ $.fn.checkbox.settings = {
onDeterminate : function() {},
onIndeterminate : function() {},
onEnabled : function(){},
onDisabled : function(){},
onEnable : function(){},
onDisable : function(){},
className : {
checked : 'checked',

Loading…
Cancel
Save