mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
Fix new issue with Emitter unit tests.
This commit is contained in:
parent
f133475405
commit
cc55991b66
1 changed files with 2 additions and 2 deletions
|
@ -81,8 +81,8 @@ var Emitter = {
|
|||
if (!handlers)
|
||||
return false;
|
||||
var args = [].slice.call(arguments, 1),
|
||||
setTarget = event && 'target' in event &&
|
||||
!('currentTarget' in event);
|
||||
setTarget = event && typeof event === 'object' && 'target' in event
|
||||
&& !('currentTarget' in event);
|
||||
// Create a clone of the handlers list so changes caused by on / off
|
||||
// won't throw us off track here:
|
||||
handlers = handlers.slice();
|
||||
|
|
Loading…
Reference in a new issue