fix for Safari bug in lib/event_emitter.js
This commit is contained in:
parent
0a14538bbe
commit
88cf393d8a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue