Skip to content

Commit

Permalink
Fix copy paste error on targetWasRemoved
Browse files Browse the repository at this point in the history
  • Loading branch information
paulkaplan committed Oct 11, 2017
1 parent 9af9eb1 commit fa2db05
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/engine/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit fa2db05

Please sign in to comment.