@live-change/dao 0.3.16 → 0.3.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,9 +18,9 @@ class ObservableList extends Observable {
18
18
  }
19
19
 
20
20
  set(list) {
21
- if(list === this.list) return;
21
+ if(list === this.list) return
22
22
  try {
23
- if (JSON.stringify(list) == JSON.stringify(this.list)) return;
23
+ if (JSON.stringify(list) == JSON.stringify(this.list)) return
24
24
  } catch(e) {}
25
25
  this.list = this.valueActivator ? this.valueActivator(list) : list
26
26
  this.fireObservers('set', list)
@@ -81,7 +81,7 @@ class ObservableProxy extends Observable {
81
81
  let beenDisposed = this.disposed
82
82
  Observable.prototype.observe.apply(this, args)
83
83
  if(!beenDisposed) {
84
- if(this.observable.getValue) {
84
+ if(this.observable && this.observable.getValue) {
85
85
  const value = this.observable.getValue()
86
86
  if(value !== undefined) this.fireObserver(args[0], 'set', value)
87
87
  } else {
package/package.json CHANGED
@@ -36,5 +36,5 @@
36
36
  "scripts": {
37
37
  "test": "NODE_ENV=test blue-tape tests/*"
38
38
  },
39
- "version": "0.3.16"
39
+ "version": "0.3.17"
40
40
  }