mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-25 13:39:03 -04:00
emit immutable
This commit is contained in:
parent
48c51ab2ec
commit
acdc783f27
1 changed files with 2 additions and 3 deletions
|
@ -706,11 +706,10 @@ 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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the number of threads in the given array that are monitor threads (threads
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue