From f06ef3c3c28334f64c71f0f36386779c8dfdcbbb Mon Sep 17 00:00:00 2001 From: Daniel Wurzer Date: Tue, 17 Dec 2024 16:49:03 +0100 Subject: [PATCH] refactor(timepicker): remove modal --- src/timepicker.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/timepicker.ts b/src/timepicker.ts index 527d3745d5..6f8d4eec24 100644 --- a/src/timepicker.ts +++ b/src/timepicker.ts @@ -101,7 +101,6 @@ type Point = { export class Timepicker extends Component { declare el: HTMLInputElement; id: string; - //modal: Modal; modalEl: HTMLElement; plate: any; digitalClock: any; @@ -147,12 +146,10 @@ export class Timepicker extends Component { constructor(el: HTMLInputElement, options: Partial) { super(el, options, Timepicker); (this.el as any).M_Timepicker = this; - this.options = { ...Timepicker.defaults, ...options }; - this.id = Utils.guid(); this._insertHTMLIntoDOM(); this._setupVariables(); @@ -218,7 +215,6 @@ export class Timepicker extends Component { destroy() { this._removeEventHandlers(); - //this.modal.destroy(); this.modalEl.remove(); (this.el as any).M_Timepicker = undefined; }