mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 23:12:24 -05:00
Fix copy paste error on targetWasRemoved
This commit is contained in:
parent
9af9eb1d92
commit
fa2db053a7
1 changed files with 5 additions and 6 deletions
|
@ -1242,13 +1242,12 @@ class Runtime extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Report that a new target has been created, possibly by cloning an existing target.
|
* Report that a clone target is being removed.
|
||||||
* @param {Target} newTarget - the newly created target.
|
* @param {Target} target - the target being removed
|
||||||
* @param {Target} [sourceTarget] - the target used as a source for the new clone, if any.
|
* @fires Runtime#targetWasRemoved
|
||||||
* @fires Runtime#targetWasCreated
|
|
||||||
*/
|
*/
|
||||||
fireTargetWasRemoved (newTarget, sourceTarget) {
|
fireTargetWasRemoved (target) {
|
||||||
this.emit('targetWasRemoved', newTarget, sourceTarget);
|
this.emit('targetWasRemoved', target);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue