Skip to content

Commit 38eecfd

Browse files
author
Joshua Morris
committed
Bind the local context to the default pass to store handler
1 parent 4d8bf21 commit 38eecfd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/build.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Observer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default class {
6464

6565
passToStore (eventName, event) {
6666
if (this.passToStoreHandler) {
67-
this.passToStoreHandler(eventName, event, this.defaultPassToStore)
67+
this.passToStoreHandler(eventName, event, this.defaultPassToStore.bind(this))
6868
} else {
6969
this.defaultPassToStore(eventName, event)
7070
}

0 commit comments

Comments
 (0)