Skip to content

Commit

Permalink
fix: done is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Aug 8, 2019
1 parent 820aca8 commit a727f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DOM/Watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export abstract class Watcher<T, Before extends Element, After extends Element,
} as Required<typeof options>),
...options,
}
let done: (state: boolean, val: any) => void
let done: (state: boolean, val: any) => void = () => {}
const then = async () => {
if (minimalResultsRequired < 1)
throw new TypeError('Invalid minimalResultsRequired, must equal to or bigger than 1')
Expand Down

0 comments on commit a727f06

Please sign in to comment.