From 4ea641439d28e5d22786198f998fbdb09b9ced8b Mon Sep 17 00:00:00 2001 From: Dan Cormier Date: Mon, 4 Apr 2022 11:52:16 -0400 Subject: [PATCH] Cleanup stimulus import --- docs/assets/js/controllers/clipboard.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/assets/js/controllers/clipboard.ts b/docs/assets/js/controllers/clipboard.ts index 958b47cec4..1467eca761 100644 --- a/docs/assets/js/controllers/clipboard.ts +++ b/docs/assets/js/controllers/clipboard.ts @@ -1,8 +1,7 @@ -import * as Stimulus from "stimulus"; +import { Application, Controller } from "stimulus"; (function(){ - var application = Stimulus.Application.start(); - application.register("clipboard", class extends Stimulus.Controller { + Application.start().register("clipboard", class extends Controller { static targets = ["source"]; sourceTarget!: HTMLElement;