Skip to content

Commit

Permalink
Pass null instead of this for Emitter.emit, see #216
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Feb 3, 2019
1 parent 1239bb6 commit c415045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/Emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ define( require => {

// Notify listeners
for ( let i = 0; i < this.activeListenersStack[ lastEntry ].length; i++ ) {
this.activeListenersStack[ lastEntry ][ i ].apply( this, arguments );
this.activeListenersStack[ lastEntry ][ i ].apply( null, arguments );
}

this.activeListenersStack.pop();
Expand Down

0 comments on commit c415045

Please sign in to comment.