[Pkg-javascript-commits] [dojo] 27/88: Make evt.touches available on iOS6 for touch.move synthetic event, fixes #16090 !strict on 1.8/ branch. Thanks to Adrian for patch.

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 17:39:33 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 d49f4bed4bd963a8563d9b284face16b5debd146
Author: Bill Keese <bill at dojotoolkit.org>
Date:   Thu Oct 4 02:26:16 2012 +0000

    Make evt.touches available on iOS6 for touch.move synthetic event, fixes #16090 !strict on 1.8/ branch.   Thanks to Adrian for patch.
    
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.8/dojo@29759 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 touch.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/touch.js b/touch.js
index eaa189e..eadaf92 100644
--- a/touch.js
+++ b/touch.js
@@ -73,6 +73,13 @@ function(dojo, lang, aspect, dom, on, has, mouse, ready, win){
 				if(node === win.doc || dom.isDescendant(hoveredNode, node)){
 					listener.call(this, lang.mixin({}, evt, {
 						target: hoveredNode,
+						// forcing the copy of the "touches" property is needed for iOS6:
+						// differently than in iOS 4 and 5, the code used by lang.mixin
+						// to iterate over the properties of the source object:
+						//   for(name in source){ ... }
+						// does not hit anymore the "touches" property... Apparently it 
+						// became a "non-enumerable" property.
+						touches: evt.touches, 
 						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