aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/autocomplete/autocomplete_events.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/autocomplete/autocomplete_events.js')
-rw-r--r--tests/unit/autocomplete/autocomplete_events.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unit/autocomplete/autocomplete_events.js b/tests/unit/autocomplete/autocomplete_events.js
index 3bbcafdf2..7b38acb8a 100644
--- a/tests/unit/autocomplete/autocomplete_events.js
+++ b/tests/unit/autocomplete/autocomplete_events.js
@@ -3,7 +3,11 @@
*/
(function($) {
-module("autocomplete: events");
+module("autocomplete: events", {
+ teardown: function() {
+ $( ":ui-autocomplete" ).autocomplete( "destroy" );
+ }
+});
var data = ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby", "python", "c", "scala", "groovy", "haskell", "pearl"];