[Pkg-javascript-commits] [dojo] 05/149: 'event' is declared 3 times in fixTouchListener; fixed
David Prévot
taffit at moszumanska.debian.org
Sat Feb 27 03:13:41 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository dojo.
commit ca9a818ac07153a92f7548b2acd2ea7bd05af602
Author: Jan Dockx <Jan_Dockx at peopleware.be>
Date: Sat Jul 5 11:51:18 2014 +0200
'event' is declared 3 times in fixTouchListener; fixed
---
on.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/on.js b/on.js
index 2f53965..d8f5d58 100644
--- a/on.js
+++ b/on.js
@@ -515,14 +515,14 @@ define(["./has!dom-addeventlistener?:./aspect", "./_base/kernel", "./sniff"], fu
// deleting properties doesn't work (older iOS), have to use delegation
if(has('mozilla')){
// Firefox doesn't like delegated properties, so we have to copy
- var event = {};
+ event = {};
for(var name in originalEvent){
event[name] = originalEvent[name];
}
}else{
// old iOS branch
Event.prototype = originalEvent;
- var event = new Event;
+ event = new Event;
}
// have to delegate methods to make them work
event.preventDefault = function(){
--
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