From ee10d7c4c15a1361b67260c09f84b432ad1a93ec Mon Sep 17 00:00:00 2001 From: Ed Hager Date: Fri, 30 Jun 2017 09:14:05 -0700 Subject: [PATCH] Disable use of requestIdleCallback in util/misc. Revert back to using setTimeout so the delays are guaranteed. --- util/misc.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/util/misc.js b/util/misc.js index 2c3af51a5..71b111622 100644 --- a/util/misc.js +++ b/util/misc.js @@ -33,12 +33,12 @@ define([ // setTimeout executes its callback when delay has transpired, *or later* // requestIdleCallback executes its callback when delay has transpired, *or sooner* // Fixes https://github.com/SitePen/dgrid/issues/1351 - if (has('requestidlecallback')) { - delayCallback = function (callback, delay) { - return requestIdleCallback(callback, { timeout: delay }); - }; - cancelDelay = cancelIdleCallback; - } + // if (has('requestidlecallback')) { + // delayCallback = function (callback, delay) { + // return requestIdleCallback(callback, { timeout: delay }); + // }; + // cancelDelay = cancelIdleCallback; + // } function removeRule(index) { // Function called by the remove method on objects returned by addCssRule.