do not overwrite type of event

this is needed for safari 6
This commit is contained in:
nightwing 2012-07-13 20:27:59 +04:00
commit 354e8b3eff

View file

@ -54,7 +54,8 @@ EventEmitter._dispatchEvent = function(eventName, e) {
return;
e = e || {};
e.type = eventName;
if (!e.type)
e.type = eventName;
if (!e.stopPropagation) {
e.stopPropagation = function() {