2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-05-30 22:24:06 +03:00

Bind the local context to the default pass to store handler

This commit is contained in:
Joshua Morris
2018-06-05 17:02:18 -06:00
parent 4d8bf21ab4
commit 38eecfda57
2 changed files with 2 additions and 2 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -64,7 +64,7 @@ export default class {
passToStore (eventName, event) {
if (this.passToStoreHandler) {
this.passToStoreHandler(eventName, event, this.defaultPassToStore)
this.passToStoreHandler(eventName, event, this.defaultPassToStore.bind(this))
} else {
this.defaultPassToStore(eventName, event)
}