[Pkg-javascript-commits] [dojo] 15/87: Ensure that listeners are added to the correct dojoIEListener, fixes #14157 !strict
David Prévot
taffit at moszumanska.debian.org
Thu Aug 21 17:39:14 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 ed2500c6a0c8b085943d912dfaf5781849032cfe
Author: Kris Zyp <kriszyp at gmail.com>
Date: Thu Dec 8 14:21:54 2011 +0000
Ensure that listeners are added to the correct dojoIEListener, fixes #14157 !strict
git-svn-id: http://svn.dojotoolkit.org/src/branches/1.7/dojo@27329 560b804f-0ae3-0310-86f3-f6aa0a117693
---
on.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/on.js b/on.js
index dcc0613..e233209 100644
--- a/on.js
+++ b/on.js
@@ -373,12 +373,13 @@ define(["./has!dom-addeventlistener?:./aspect", "./_base/kernel", "./has"], func
var oldListener = emiter;
target[type] = emiter = Function('event', 'var callee = arguments.callee; for(var i = 0; i<callee.listeners.length; i++){var listener = _dojoIEListeners_[callee.listeners[i]]; if(listener){listener.call(this,event);}}');
emiter.listeners = [];
+ emiter.global = this;
if(oldListener){
emiter.listeners.push(_dojoIEListeners_.push(oldListener) - 1);
}
}
var handle;
- emiter.listeners.push(handle = (_dojoIEListeners_.push(listener) - 1));
+ emiter.listeners.push(handle = (emiter.global._dojoIEListeners_.push(listener) - 1));
return new IESignal(handle);
}
return aspect.after(target, type, listener, true);
--
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