Autocomplete unit tests: Replace unreliable setTimeout with gobal ajax event handler

This commit is contained in:
jzaefferer 2010-03-31 16:39:16 +02:00
parent af2296b3b0
commit 88b909b04e

View File

@ -120,7 +120,7 @@ function source_test(source, async) {
} }
if (async) { if (async) {
stop(); stop();
setTimeout(result, 100); $(document).one("ajaxStop", result);
} else { } else {
result(); result();
} }