Skip to content

Commit

Permalink
Preserve scope of event callbacks
Browse files Browse the repository at this point in the history
Fixes #66.
  • Loading branch information
darrylyeo authored Mar 15, 2017
1 parent d28896e commit 01ea427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/patch-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export function addEventListener(type, fn, optionsOrCapture) {
return;
}
}
return fn(e);
return fn.call(this, e);
}
};
// Store the wrapper information.
Expand Down

0 comments on commit 01ea427

Please sign in to comment.