Skip to content

Commit

Permalink
Update debounce5.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ishuiz authored Jan 14, 2018
1 parent 0f8b591 commit 78e6c69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demos/debounce/debounce5.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ container.onmousemove = debounce(getUserAction, 1000, true);
// 第四版
function debounce(func, wait, immediate) {

var timeout, result;
var timeout;

return function () {
var context = this;
Expand All @@ -34,4 +34,4 @@ function debounce(func, wait, immediate) {
}, wait);
}
}
}
}

0 comments on commit 78e6c69

Please sign in to comment.