mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
Merge branch 'MDL-43664-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
473924dfd5
1 changed files with 3 additions and 1 deletions
|
@ -718,7 +718,9 @@ M.util.js_watch_io();
|
||||||
* @return boolean - True if there is any pending js.
|
* @return boolean - True if there is any pending js.
|
||||||
*/
|
*/
|
||||||
M.util.js_complete = function(uniqid) {
|
M.util.js_complete = function(uniqid) {
|
||||||
var index = M.util.pending_js.indexOf(uniqid);
|
// Use the Y.Array.indexOf instead of the native because some older browsers do not support
|
||||||
|
// 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) {
|
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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue