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));
|
||||
});
|
||||
events.metaEvents.forEach(Dataspace.stateChange);
|
||||
this.onStateChange(this.mux, updateStreamResult.deltaAggregate);
|
||||
if (!updateStreamResult.deltaAggregate.isEmpty()) {
|
||||
this.onStateChange(this.mux, updateStreamResult.deltaAggregate);
|
||||
}
|
||||
};
|
||||
|
||||
Dataspace.prototype.deliverEvent = function (pid, event) {
|
||||
|
|
Loading…
Reference in New Issue