Skip to content

Commit 7392a3e

Browse files
Tatsujinichiwilleastcott
authored andcommitted
removed code, redundant with line 428 (playcanvas#1099)
1 parent fd477a1 commit 7392a3e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/framework/components/script/component.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,6 @@ pc.extend(pc, function () {
437437
// remove swap event
438438
this.system.app.scripts.off('swap:' + scriptName, scriptData.onSwap);
439439

440-
delete this._scriptsIndex[scriptName];
441440
delete this[scriptName];
442441

443442
this.fire('destroy', scriptName, scriptData.instance || null);

0 commit comments

Comments
 (0)