[Pkg-javascript-commits] [dojo] 85/88: Fix dojo/ready to not blindly make calls to methods that might not exist on the require object. Fixes #15616. !strict Backport to 1.8
David Prévot
taffit at moszumanska.debian.org
Thu Aug 21 17:39:42 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.8.5
in repository dojo.
commit a48e75ef40f902e00641e4215f562a461528cceb
Author: Colin Snover <github.com at zetafleet.com>
Date: Sun Apr 28 04:17:06 2013 +0000
Fix dojo/ready to not blindly make calls to methods that might not exist on the require object. Fixes #15616.
!strict
Backport to 1.8
git-svn-id: http://svn.dojotoolkit.org/src/branches/1.8/dojo@31369 560b804f-0ae3-0310-86f3-f6aa0a117693
---
ready.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ready.js b/ready.js
index a4b27ec..811e73d 100644
--- a/ready.js
+++ b/ready.js
@@ -45,9 +45,9 @@ define(["./_base/kernel", "./has", "require", "./has!host-browser?./domReady", "
}
};
- require.on("idle", onLoad);
+ require.on && require.on("idle", onLoad);
requestCompleteSignal = function(){
- if(require.idle()){
+ if(require.idle ? require.idle() : true){
onLoad();
} // else do nothing, onLoad will be called with the next idle signal
};
--
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