mirror of
https://github.com/tenrok/vue-native-websocket.git
synced 2026-06-21 02:20:34 +03:00
Bind the local context to the default pass to store handler
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -64,7 +64,7 @@ export default class {
|
|||||||
|
|
||||||
passToStore (eventName, event) {
|
passToStore (eventName, event) {
|
||||||
if (this.passToStoreHandler) {
|
if (this.passToStoreHandler) {
|
||||||
this.passToStoreHandler(eventName, event, this.defaultPassToStore)
|
this.passToStoreHandler(eventName, event, this.defaultPassToStore.bind(this))
|
||||||
} else {
|
} else {
|
||||||
this.defaultPassToStore(eventName, event)
|
this.defaultPassToStore(eventName, event)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user