Skip to content
Permalink
Browse files

Autocomplete unit tests: Replace unreliable setTimeout with gobal aja…

…x event handler
  • Loading branch information
jzaefferer committed Mar 31, 2010
1 parent af2296b commit 88b909b04ec43443514867f83171cbc9760bb638
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/unit/autocomplete/autocomplete_options.js
@@ -120,7 +120,7 @@ function source_test(source, async) {
}
if (async) {
stop();
setTimeout(result, 100);
$(document).one("ajaxStop", result);
} else {
result();
}

0 comments on commit 88b909b

Please sign in to comment.
You can’t perform that action at this time.