[Pkg-javascript-commits] [dojo] 81/87: Backport of r30987 to 1.7 branch, refs #15862 !strict

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


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

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

commit aa24d70dd1281e528f5a69c24fb3f3dbab621190
Author: Brian Arnold <brianarn at gmail.com>
Date:   Wed Mar 27 21:43:26 2013 +0000

    Backport of r30987 to 1.7 branch, refs #15862 !strict
    
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.7/dojo@31026 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 on.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/on.js b/on.js
index e233209..10dcc84 100644
--- a/on.js
+++ b/on.js
@@ -37,7 +37,7 @@ define(["./has!dom-addeventlistener?:./aspect", "./_base/kernel", "./has"], func
 		has.add("event-orientationchange", has("touch") && !has("android")); // TODO: how do we detect this?
 	}
 	var on = function(target, type, listener, dontFix){
-		if(target.on){ 
+		if(typeof target.on == "function" && typeof type != "function" && !target.nodeType){
 			// delegate to the target's on() method, so it can handle it's own listening if it wants
 			return target.on(type, listener);
 		}

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