[Pkg-javascript-commits] [dojo] 19/88: Fixes #15892 !strict, create new event obj by mixin rather than lang.delegate for changing evt.target, also back ported to 1.8.x branch

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 17:39:32 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 b7cee4c70f83f7563a7b238ae3079c9be4bde4e3
Author: Evan Huang <evanhuangwei at gmail.com>
Date:   Wed Sep 12 14:31:45 2012 +0000

    Fixes #15892 !strict, create new event obj by mixin rather than lang.delegate for changing evt.target, also back ported to 1.8.x branch
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.8/dojo@29646 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 touch.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/touch.js b/touch.js
index 053cf38..eaa189e 100644
--- a/touch.js
+++ b/touch.js
@@ -71,8 +71,10 @@ function(dojo, lang, aspect, dom, on, has, mouse, ready, win){
 		touchmove = function(node, listener){
 			return on(win.doc, "touchmove", function(evt){
 				if(node === win.doc || dom.isDescendant(hoveredNode, node)){
-					listener.call(this, lang.delegate(evt, {
-						target: hoveredNode
+					listener.call(this, lang.mixin({}, evt, {
+						target: hoveredNode,
+						preventDefault: function(){evt.preventDefault();},
+						stopPropagation: function(){evt.stopPropagation();}
 					}));
 				}
 			});

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