Skip to content

Commit

Permalink
move from constructor to setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Mar 13, 2020
1 parent b7f2752 commit 4900cba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/plugins/ui_actions/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ export type UiActionsStart = PublicMethodsOf<UiActionsService>;
export class UiActionsPlugin implements Plugin<UiActionsSetup, UiActionsStart> {
private readonly service = new UiActionsService();

constructor(initializerContext: PluginInitializerContext) {
this.service.registerTrigger(selectRangeTrigger);
}
constructor(initializerContext: PluginInitializerContext) {}

public setup(core: CoreSetup): UiActionsSetup {
this.service.registerTrigger(selectRangeTrigger);
return this.service;
}

Expand Down

0 comments on commit 4900cba

Please sign in to comment.