From a172bad30f0cf54de3fc5c9d94d2299556889df0 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 13 Feb 2020 17:50:17 -0500 Subject: [PATCH] drop unnecessary reference to 'window' in Util.throttle --- www/common/common-util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/common-util.js b/www/common/common-util.js index de5a68ca2..1af32103f 100644 --- a/www/common/common-util.js +++ b/www/common/common-util.js @@ -272,8 +272,8 @@ Util.throttle = function (f, ms) { var to; var g = function () { - window.clearTimeout(to); - to = window.setTimeout(Util.bake(f, Util.slice(arguments)), ms); + clearTimeout(to); + to = setTimeout(Util.bake(f, Util.slice(arguments)), ms); }; return g; };