Only trigger onStateChange with non-empty patch (?)
This commit is contained in:
parent
0693e88031
commit
6ba9b402ec
|
@ -280,7 +280,9 @@ Dataspace.prototype.deliverPatches = function (oldMux, updateStreamResult) {
|
||||||
self.deliverEvent(pid, stateChange(patch));
|
self.deliverEvent(pid, stateChange(patch));
|
||||||
});
|
});
|
||||||
events.metaEvents.forEach(Dataspace.stateChange);
|
events.metaEvents.forEach(Dataspace.stateChange);
|
||||||
|
if (!updateStreamResult.deltaAggregate.isEmpty()) {
|
||||||
this.onStateChange(this.mux, updateStreamResult.deltaAggregate);
|
this.onStateChange(this.mux, updateStreamResult.deltaAggregate);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Dataspace.prototype.deliverEvent = function (pid, event) {
|
Dataspace.prototype.deliverEvent = function (pid, event) {
|
||||||
|
|
Loading…
Reference in New Issue