fix: clone options to avoid sharing state between multiple instances (#96)

see (#95)
This commit is contained in:
Alexandre Bonaventure Geissmann
2017-08-02 06:20:07 -04:00
committed by Guillaume Chau
parent d59116d62b
commit 1436cc5e10
+1 -1
View File
@@ -9,7 +9,7 @@ class SmartApollo {
constructor (vm, key, options, autostart = true) {
this.vm = vm
this.key = key
this.options = options
this.options = Object.assign({}, options)
this._skip = false
this._watchers = []