From 7bb2002779390738952ef5d715c1a68966d3bca9 Mon Sep 17 00:00:00 2001 From: Dmytro Soldatov Date: Sun, 5 Nov 2023 00:07:32 +0200 Subject: [PATCH] refactor --- src/Input.ts | 2 -- src/SliderBase.ts | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/Input.ts b/src/Input.ts index c78da096..c3dfd588 100644 --- a/src/Input.ts +++ b/src/Input.ts @@ -164,7 +164,6 @@ export class Input extends Container { if (this._bg) { - this.removeChild(this._bg); this._bg.destroy(); } @@ -199,7 +198,6 @@ export class Input extends Container { this.inputField.mask = null; this._cursor.mask = null; - this.removeChild(this.inputMask); this.inputMask.destroy(); } diff --git a/src/SliderBase.ts b/src/SliderBase.ts index 8ef1ef88..17c57aa5 100644 --- a/src/SliderBase.ts +++ b/src/SliderBase.ts @@ -90,7 +90,6 @@ export class SliderBase extends ProgressBar if (this._slider1) { this.slider1.removeAllListeners(); - this.removeChild(this._slider1); this.slider1.destroy(); } @@ -129,7 +128,6 @@ export class SliderBase extends ProgressBar if (this._slider2) { this.slider2.removeAllListeners(); - this.removeChild(this._slider2); this.slider2.destroy(); }