Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
metasansana committed Nov 7, 2017
1 parent 4bb1e84 commit c7012e0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions example/public/app.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/common/util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/common/util.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/common/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ export const debounce = <A>(f: (a: A) => void, delay: number) => {
return delay === 0 ? f : (a: A) => {

if (!timer) {
timer = setTimeout(() => f(a), delay);
timer = window.setTimeout(() => f(a), delay);
} else {
clearTimeout(timer);
timer = setTimeout(() => f(a), delay);
timer = window.setTimeout(() => f(a), delay);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/common/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ export const debounce = <A>(f: (a: A) => void, delay: number) => {
return delay === 0 ? f : (a: A) => {

if (!timer) {
timer = setTimeout(() => f(a), delay);
timer = window.setTimeout(() => f(a), delay);
} else {
clearTimeout(timer);
timer = setTimeout(() => f(a), delay);
timer = window.setTimeout(() => f(a), delay);
}
}

Expand Down

0 comments on commit c7012e0

Please sign in to comment.