MDL-72609 core: Fix complete_js to be a list of strings
This commit is contained in:
@@ -708,7 +708,7 @@ M.util.js_complete = function(uniqid) {
|
||||
// the native function. Y.Array polyfills the native function if it does not exist.
|
||||
var index = Y.Array.indexOf(M.util.pending_js, uniqid);
|
||||
if (index >= 0) {
|
||||
M.util.complete_js.push(M.util.pending_js.splice(index, 1));
|
||||
M.util.complete_js.push(M.util.pending_js.splice(index, 1)[0]);
|
||||
} else {
|
||||
window.console.log("Unable to locate key for js_complete call", uniqid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user