mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-27 22:50:22 -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)) {
|
if (!this._prevMonitorState.equals(this._monitorState)) {
|
||||||
const monitorStateObj = this._monitorState.toJS();
|
this.emit(Runtime.MONITORS_UPDATE, this._monitorState);
|
||||||
this.emit(Runtime.MONITORS_UPDATE, Object.keys(monitorStateObj).map(key => monitorStateObj[key]));
|
|
||||||
}
|
|
||||||
this._prevMonitorState = this._monitorState;
|
this._prevMonitorState = this._monitorState;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the number of threads in the given array that are monitor threads (threads
|
* 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