mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-10 15:02:06 -05:00
Always start runtime with an empty target list.
This commit is contained in:
parent
ba0cc0dcfc
commit
08f48c5b30
1 changed files with 3 additions and 3 deletions
|
@ -18,9 +18,8 @@ var defaultBlockPackages = {
|
|||
|
||||
/**
|
||||
* Manages targets, scripts, and the sequencer.
|
||||
* @param {!Array.<Target>} targets List of targets for this runtime.
|
||||
*/
|
||||
function Runtime (targets) {
|
||||
function Runtime () {
|
||||
// Bind event emitter
|
||||
EventEmitter.call(this);
|
||||
|
||||
|
@ -28,8 +27,9 @@ function Runtime (targets) {
|
|||
|
||||
/**
|
||||
* Target management and storage.
|
||||
* @type {Array.<!Target>}
|
||||
*/
|
||||
this.targets = targets;
|
||||
this.targets = [];
|
||||
|
||||
/**
|
||||
* A list of threads that are currently running in the VM.
|
||||
|
|
Loading…
Reference in a new issue