|
@ -78,13 +78,11 @@ $.fn.checkbox = function(parameters) { |
|
|
destroy: function() { |
|
|
destroy: function() { |
|
|
module.verbose('Destroying module'); |
|
|
module.verbose('Destroying module'); |
|
|
module.unbind.events(); |
|
|
module.unbind.events(); |
|
|
$module |
|
|
|
|
|
.removeData(moduleNamespace) |
|
|
|
|
|
; |
|
|
|
|
|
|
|
|
module.show.input(); |
|
|
|
|
|
$module.removeData(moduleNamespace); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
fix: { |
|
|
fix: { |
|
|
|
|
|
|
|
|
reference: function() { |
|
|
reference: function() { |
|
|
if( $module.is(selector.input) ) { |
|
|
if( $module.is(selector.input) ) { |
|
|
module.debug('Behavior called on <input> adjusting invoked element'); |
|
|
module.debug('Behavior called on <input> adjusting invoked element'); |
|
@ -128,10 +126,16 @@ $.fn.checkbox = function(parameters) { |
|
|
|
|
|
|
|
|
hide: { |
|
|
hide: { |
|
|
input: function() { |
|
|
input: function() { |
|
|
module.verbose('Modfying <input> z-index'); |
|
|
|
|
|
|
|
|
module.verbose('Modfying <input> z-index to be unselectable'); |
|
|
$input.addClass(className.hidden); |
|
|
$input.addClass(className.hidden); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
show: { |
|
|
|
|
|
input: function() { |
|
|
|
|
|
module.verbose('Modfying <input> z-index to be selectable'); |
|
|
|
|
|
$input.removeClass(className.hidden); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
observeChanges: function() { |
|
|
observeChanges: function() { |
|
|
if('MutationObserver' in window) { |
|
|
if('MutationObserver' in window) { |
|
|