Commit and whitespace nits in debounce.

This commit is contained in:
John-David Dalton
2017-10-01 19:55:40 -07:00
parent 6ad829fa90
commit 1b1bb79b05

View File

@@ -53,7 +53,7 @@ import isObject from './isObject.js'
* jQuery(window).on('popstate', debounced.cancel) * jQuery(window).on('popstate', debounced.cancel)
* *
* // Check for pending invocations. * // Check for pending invocations.
* const status = debounced.pending() ? "Pending" : "Ready" * const status = debounced.pending() ? "Pending..." : "Ready"
*/ */
function debounce(func, wait, options) { function debounce(func, wait, options) {
let lastArgs, let lastArgs,