Skip to content

Commit a0a8118

Browse files
committed
chore: broken watcher clean up
1 parent c85d278 commit a0a8118

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/runtime/composables/useScriptTriggerElement.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,11 @@ export function useScriptTriggerElement(options: ElementScriptTriggerOptions): P
8484
)
8585
tryOnMounted(() => {
8686
// check if target has any of the triggers active onthe data set
87-
const _2 = watch(target, ($el) => {
87+
watch(target, ($el) => {
8888
if ($el) {
8989
triggers.forEach((trigger) => {
9090
if (($el as HTMLElement).dataset[`script_${trigger}`]) {
9191
_()
92-
_2()
9392
resolve()
9493
}
9594
})

0 commit comments

Comments
 (0)