fix for Safari bug in lib/event_emitter.js

This commit is contained in:
Ioannis Kostomanolakis 2012-08-22 15:48:57 +02:00 committed by nightwing
commit 88cf393d8a

View file

@ -53,7 +53,7 @@ EventEmitter._dispatchEvent = function(eventName, e) {
if (!listeners.length && !defaultHandler)
return;
e = e || {};
e = ( e === Object( e ) ) ? e : {};
if (!e.type)
e.type = eventName;