mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Autocomplete unit tests: Replace unreliable setTimeout with gobal ajax event handler
This commit is contained in:
parent
af2296b3b0
commit
88b909b04e
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user