addyosmani/basket.js — Issue #23: bug in queueExec - than .wait() does not wait
Author: angelogeminiani
Created: 2012-03-05 10:32:42+00:00
State: open

Hi, there's a little bug in queueExec:

for (j = i; j < scriptsExecuted; j++) {
if (callback == waitCallbacks[j]) {
waitCallbacks[j] = null;
callback();
}
}

"waitCallbacks[j] = null" should be "waitCallbacks[j] == null;"