From 274e1139fab94940464a1e1d9c776a9fb2335e62 Mon Sep 17 00:00:00 2001 From: toby Date: Wed, 3 May 2017 10:43:30 -0400 Subject: [PATCH] Remove debounce from Utils --- src/core/Utils.js | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/core/Utils.js b/src/core/Utils.js index a49565e5..2e4b354b 100755 --- a/src/core/Utils.js +++ b/src/core/Utils.js @@ -1185,33 +1185,6 @@ const Utils = { "Latin1": CryptoJS.enc.Latin1, }, - - /** - * A utility for "debouncing" functions. - * Debouncing is when you want to ensure events triggered by an event are rate-limited. - * @constant - */ - debounce(fn, delay) { - let timeout; - - return function() { - /** - * later calls the debounced function with arguments. - * If the debounced function is called again, then the timeout - * which calls later is cancelled. - */ - let later = () => { - fn.apply(this, arguments); - }; - - if (timeout) { - clearTimeout(timeout); - } - - timeout = setTimeout(later, delay); - }; - }, - }; export default Utils;