Fix copy paste error on targetWasRemoved

This commit is contained in:
Paul Kaplan 2017-10-11 14:19:15 -04:00
parent 9af9eb1d92
commit fa2db053a7

View file

@ -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);
} }
/** /**