aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-11-09 12:54:33 -0500
committerScott González <scott.gonzalez@gmail.com>2012-11-09 12:54:33 -0500
commit1cdeeccab0e76495842cad9d04e686aee802777d (patch)
tree3094f7dc3e299c5ab8fe69f93cd110b08e1252c3 /tests/unit
parentd44557f50ad7b3c512bdd8bc2ba3eed5672b3b12 (diff)
downloadjquery-ui-1cdeeccab0e76495842cad9d04e686aee802777d.tar.gz
jquery-ui-1cdeeccab0e76495842cad9d04e686aee802777d.zip
Widget: Suppress disabled check when binding destroy to the remove event. Fixes #8769 - Widget: ui-state-disabled blocks destroy to be triggered on remove.
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/widget/widget_core.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/widget/widget_core.js b/tests/unit/widget/widget_core.js
index b0812638a..418cc4d39 100644
--- a/tests/unit/widget/widget_core.js
+++ b/tests/unit/widget/widget_core.js
@@ -1197,6 +1197,12 @@ test( "._trigger() - instance as element", function() {
});
});
+ test( "auto-destroy - .remove() when disabled", function() {
+ shouldDestroy( true, function() {
+ $( "#widget" ).testWidget({ disabled: true }).remove();
+ });
+ });
+
test( "auto-destroy - .remove() on parent", function() {
shouldDestroy( true, function() {
$( "#widget" ).testWidget().parent().remove();