Skip to content

Commit cdc9206

Browse files
committed
feat(Timepicker/DisplayPlugin) refactor displayPlugin initiator with method invokation
1 parent 94d08a3 commit cdc9206

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

components/timepicker/timepicker.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,7 @@ export class Timepicker extends Component<TimepickerOptions> {
192192
this._setupVariables();
193193
this._setupEventHandlers();
194194
this._clockSetup();
195-
if (this.options.displayPlugin) {
196-
if (this.options.displayPlugin === 'docked')
197-
this.displayPlugin = DockedDisplayPlugin.init(
198-
this.el,
199-
this.containerEl,
200-
this.options.displayPluginOptions
201-
);
202-
}
195+
if (this.options.displayPlugin) this._setupDisplayPlugin();
203196
this._pickerSetup();
204197
}
205198

0 commit comments

Comments
 (0)