Skip to content

Commit

Permalink
Revert "Ensuring that flushing does not occur more than once. Fixes d…
Browse files Browse the repository at this point in the history
  • Loading branch information
peterox committed Oct 26, 2017
1 parent c326adb commit 5651ba2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/utils/debounce.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ export default function debounce(func, delay) {
const createLaterFunc = (args) => () => {
timeout = null;
func.apply(null, args);

// Only run the deferred function once
laterFunc = undefined;
};

const debouncedFunc = (...args) => {
Expand Down

0 comments on commit 5651ba2

Please sign in to comment.