Browse Source

[修正] 事件监听可能发生的内存溢出

develop
徐振升 4 years ago
parent
commit
47e29c6adc
  1. 1
      src/app/working-area/working-area.component.ts

1
src/app/working-area/working-area.component.ts

@ -579,6 +579,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
*/ */
public destroyBackgroundImage(): void { public destroyBackgroundImage(): void {
this.app.stage.removeChild(this.backgroundImage); this.app.stage.removeChild(this.backgroundImage);
this.removeAllListeners('backgroundScale');
} }
/** /**
* *

Loading…
Cancel
Save