From fa2db053a77c349c20362ba712f4c17f1eb03985 Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Wed, 11 Oct 2017 14:19:15 -0400 Subject: [PATCH] Fix copy paste error on targetWasRemoved --- src/engine/runtime.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/engine/runtime.js b/src/engine/runtime.js index dc3f7c128..0c0645f9b 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -1242,13 +1242,12 @@ class Runtime extends EventEmitter { } /** - * Report that a new target has been created, possibly by cloning an existing target. - * @param {Target} newTarget - the newly created target. - * @param {Target} [sourceTarget] - the target used as a source for the new clone, if any. - * @fires Runtime#targetWasCreated + * Report that a clone target is being removed. + * @param {Target} target - the target being removed + * @fires Runtime#targetWasRemoved */ - fireTargetWasRemoved (newTarget, sourceTarget) { - this.emit('targetWasRemoved', newTarget, sourceTarget); + fireTargetWasRemoved (target) { + this.emit('targetWasRemoved', target); } /**