diff options
author | Marc-Andre Lafortune <github@marc-andre.ca> | 2012-10-07 02:35:01 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-10-23 14:06:30 -0400 |
commit | 8bb05d23e2c49ecbe2f83a3552efb0a93c48bb85 (patch) | |
tree | da81b6f0550a347b6f38afb56f1e9cb0d86b9da6 /tests/unit/widget/widget_core.js | |
parent | b1b07e8046aa0f0b543ade96eb28567af68efb81 (diff) | |
download | jquery-ui-8bb05d23e2c49ecbe2f83a3552efb0a93c48bb85.tar.gz jquery-ui-8bb05d23e2c49ecbe2f83a3552efb0a93c48bb85.zip |
Widget: Destroy only when element is the actual target. Fixes #8652 - Widget: Destroy only when element is the actual target.
Diffstat (limited to 'tests/unit/widget/widget_core.js')
-rw-r--r-- | tests/unit/widget/widget_core.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/widget/widget_core.js b/tests/unit/widget/widget_core.js index 848579a1d..31f2b9ccf 100644 --- a/tests/unit/widget/widget_core.js +++ b/tests/unit/widget/widget_core.js @@ -1167,6 +1167,13 @@ test( "._trigger() - instance as element", function() { $( "#widget" ).testWidget().detach(); }); }); + + test( "destroy - remove event bubbling", function() { + shouldDestroy( false, function() { + $( "<div>child</div>" ).appendTo( $( "#widget" ).testWidget() ) + .trigger( "remove" ); + }); + }); }()); test( "redefine", function() { |