Browse Source

The wrong this

The this in the call to refresh() from MutationObserver is the module itself not the DOM jquery object. Changing to element fixed it.
pull/2225/head
Penn Su 9 years ago
parent
commit
b916ea4aa0
1 changed files with 3 additions and 3 deletions
  1. 6
      src/definitions/modules/checkbox.js

6
src/definitions/modules/checkbox.js

@ -93,9 +93,9 @@ $.fn.checkbox = function(parameters) {
}, },
refresh: function() { refresh: function() {
$module = $(this);
$label = $(this).find(selector.label).first();
$input = $(this).find(selector.input);
$module = $(element);
$label = $(element).find(selector.label).first();
$input = $(element).find(selector.input);
}, },
observeChanges: function() { observeChanges: function() {

Loading…
Cancel
Save