Removing unnecessary comments from edits.

This commit is contained in:
Karishma Chadha 2017-11-08 15:59:35 -05:00
parent 70081132cb
commit 7fae93f6e6

View file

@ -474,9 +474,6 @@ class VirtualMachine extends EventEmitter {
*/ */
deleteSprite (targetId) { deleteSprite (targetId) {
const target = this.runtime.getTargetById(targetId); const target = this.runtime.getTargetById(targetId);
// const targetIndexBeforeDelete = this.runtime.targets.map(t => t.id).indexOf(target.id);
// can't call target.id if target doesn't exist.
// moving below
if (target) { if (target) {
const targetIndexBeforeDelete = this.runtime.targets.map(t => t.id).indexOf(target.id); const targetIndexBeforeDelete = this.runtime.targets.map(t => t.id).indexOf(target.id);