[Pkg-javascript-commits] [dojo] 07/13: Do not execute dojo/on until DOM is ready

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 17:39:56 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag 1.9.3
in repository dojo.

commit 31aab4cc1bb93592d1cb6a3c4e34f612f36d525a
Author: Colin Snover <github.com at zetafleet.com>
Date:   Sat Feb 1 06:18:18 2014 +0000

    Do not execute dojo/on until DOM is ready
    
    This ensures that the focusin/out feature detection operates
    properly even when people do not follow best practices and put
    their code in the <head> instead of before </body>.
    
    Refs #17599.
    
    (cherry picked from commit 08187b88273f09326e5ebc8ea03eecd592e7eaca)
---
 on.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/on.js b/on.js
index e374ade9..5b5a7f0 100644
--- a/on.js
+++ b/on.js
@@ -1,4 +1,4 @@
-define(["./has!dom-addeventlistener?:./aspect", "./_base/kernel", "./sniff"], function(aspect, dojo, has){
+define(["./has!dom-addeventlistener?:./aspect", "./_base/kernel", "./sniff", "./domReady!"], function(aspect, dojo, has){
 
 	"use strict";
 	if(has("dom")){ // check to make sure we are in a browser, this module should work anywhere

-- 
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