From 5cb889fd72003ba254547c26917fc052134d9c6a Mon Sep 17 00:00:00 2001 From: Jasper Staats Date: Tue, 2 May 2017 10:53:51 +0200 Subject: [PATCH] Multiple arguments added for emitting to store This solves issue #51. --- src/Observer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Observer.js b/src/Observer.js index a234b8c..7983822 100755 --- a/src/Observer.js +++ b/src/Observer.js @@ -21,7 +21,7 @@ export default class{ this.Socket.onevent = (packet) => { Emitter.emit(packet.data[0], packet.data[1]); - if(this.store) this.passToStore('SOCKET_'+packet.data[0], packet.data[1]) + if(this.store) this.passToStore('SOCKET_'+packet.data[0], [ ...packet.data.slice(1)]) }; let _this = this;