[Pkg-javascript-commits] [dojo] 11/29: Reapply a48e75ef40f902e00641e4215f562a461528cceb which was nuked by 33e4435e30d59f339af3bcce6d84fbc0aa3bd6c6
David Prévot
taffit at moszumanska.debian.org
Thu Mar 24 04:28:34 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.8.11
in repository dojo.
commit f96c2738bf2cdb7dd236ea777953c5fb9f4a93d9
Author: Colin Snover <github.com at zetafleet.com>
Date: Fri Sep 4 16:52:25 2015 +0000
Reapply a48e75ef40f902e00641e4215f562a461528cceb which was nuked by 33e4435e30d59f339af3bcce6d84fbc0aa3bd6c6
---
ready.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ready.js b/ready.js
index 29bace9..f6b2559 100644
--- a/ready.js
+++ b/ready.js
@@ -41,7 +41,7 @@ define(["./_base/kernel", "./has", "require", "./has!host-browser?./domReady", "
// The last step is necessary so that a user defined dojo.ready() callback is delayed until after the
// domReady() calls inside of dojo. Failure can be seen on dijit/tests/robot/Dialog_ally.html on IE8
// because the dijit/focus.js domReady() callback doesn't execute until after the test starts running.
- while(isDomReady && (!domReady || domReady._Q.length == 0) && require.idle() && loadQ.length){
+ while(isDomReady && (!domReady || domReady._Q.length == 0) && (require.idle ? require.idle() : true) && loadQ.length){
var f = loadQ.shift();
try{
f();
@@ -55,7 +55,7 @@ define(["./_base/kernel", "./has", "require", "./has!host-browser?./domReady", "
// Check if we should run the next queue operation whenever require() finishes loading modules or domReady
// finishes processing it's queue.
- require.on("idle", onEvent);
+ require.on && require.on("idle", onEvent);
if(domReady){
domReady._onQEmpty = onEvent;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git
More information about the Pkg-javascript-commits
mailing list