Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Make sure that the global object is equal to the parent object.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Higgins committed Jul 3, 2013
1 parent 24411e9 commit ba42e2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EventEmitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@
while (i--) {
// If the listener returns true then it shall be removed from the event
// The function is executed either with a basic call or an apply if there is an args array
response = args ? listeners[key][i].apply(null, args) : listeners[key][i]();
response = listeners[key][i].apply(this, args || []);
if (response === true) {
this.removeListener(evt, listeners[key][i]);
}
Expand Down
2 changes: 1 addition & 1 deletion EventEmitter.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ba42e2f

Please sign in to comment.