mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-06 11:10:30 -04:00
emit immutable
This commit is contained in:
parent
48c51ab2ec
commit
acdc783f27
1 changed files with 2 additions and 3 deletions
|
@ -706,10 +706,9 @@ class Runtime extends EventEmitter {
|
|||
}
|
||||
|
||||
if (!this._prevMonitorState.equals(this._monitorState)) {
|
||||
const monitorStateObj = this._monitorState.toJS();
|
||||
this.emit(Runtime.MONITORS_UPDATE, Object.keys(monitorStateObj).map(key => monitorStateObj[key]));
|
||||
this.emit(Runtime.MONITORS_UPDATE, this._monitorState);
|
||||
this._prevMonitorState = this._monitorState;
|
||||
}
|
||||
this._prevMonitorState = this._monitorState;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue