[Pkg-javascript-commits] [dojo] 26/27: Fix bad backport in 570591de9d865daa499e7a04605c158c03585c52

David Prévot taffit at moszumanska.debian.org
Sun Sep 14 16:23:07 UTC 2014


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

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

commit b4f2945d9814b5bb1bd3b7e7d8b77d9f196c7a3f
Author: Colin Snover <github.com at zetafleet.com>
Date:   Fri Sep 12 16:56:31 2014 +0000

    Fix bad backport in 570591de9d865daa499e7a04605c158c03585c52
---
 on.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/on.js b/on.js
index 54f9082..57bff67 100644
--- a/on.js
+++ b/on.js
@@ -1,7 +1,4 @@
 define(["./has!dom-addeventlistener?:./aspect", "./_base/kernel", "./has"], function(aspect, dojo, has){
-		has.add("event-focusin", function(global, doc, element){
-			return 'onfocusin' in element;
-		});
 	// summary:
 	//		The export of this module is a function that provides core event listening functionality. With this function
 	//		you can provide a target, event type, and listener to be notified of
@@ -38,6 +35,9 @@ define(["./has!dom-addeventlistener?:./aspect", "./_base/kernel", "./has"], func
 		var major = window.ScriptEngineMajorVersion;
 		has.add("jscript", major && (major() + ScriptEngineMinorVersion() / 10));
 		has.add("event-orientationchange", has("touch") && !has("android")); // TODO: how do we detect this?
+		has.add("event-focusin", function(global, doc, element){
+			return 'onfocusin' in element;
+		});
 	}
 	var on = function(target, type, listener, dontFix){
 		if(typeof target.on == "function" && typeof type != "function" && !target.nodeType){

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