state: handle array-value case when checking for "value" prop update

This commit is contained in:
jean-emmanuel 2018-01-27 10:46:50 +01:00
parent b87dd8a242
commit 23495616f4

View file

@ -128,11 +128,11 @@ var StateManager = class StateManager {
}
pushValueOldProp(id, value) {
this.valueOldPropQueue[id] = value
this.valueOldPropQueue[id] = typeof value == 'object' ? JSON.stringify(value) : value
}
pushValueNewProp(id, value) {
this.valueNewPropQueue[id] = value
this.valueNewPropQueue[id] = typeof value == 'object' ? JSON.stringify(value) : value
if (this.queueCounter == 0) this.flush()
}