@plcmp/pl-data-observer
Advanced tools
+1
-1
| { | ||
| "name": "@plcmp/pl-data-observer", | ||
| "version": "0.1.9", | ||
| "version": "0.1.10", | ||
| "description": "Data mutation observer component", | ||
@@ -5,0 +5,0 @@ "main": "pl-data-observer.js", |
@@ -44,4 +44,5 @@ import { PlElement, css } from 'polylib'; | ||
| } | ||
| upd = false; | ||
| } | ||
| upd = false; | ||
| this.setTouch(path.slice(0, -1), chain.slice(0, -1), upd); | ||
@@ -109,3 +110,3 @@ } | ||
| _checkMutation(obj, firstLevel) { | ||
| _checkMutation(obj) { | ||
| obj = obj || this.data; | ||
@@ -131,3 +132,3 @@ if (Array.isArray(obj)) { | ||
| if (o instanceof Object && !(o instanceof Date)) { | ||
| if (!firstLevel && this._checkMutation(o)) return true; | ||
| return this._checkMutation(o); | ||
| } else { | ||
@@ -134,0 +135,0 @@ if (obj._old && o !== obj._old[prop]) return true; |
7993
-0.39%