diff --git a/www/common/common-util.js b/www/common/common-util.js index 424dbfdd3..95959d733 100644 --- a/www/common/common-util.js +++ b/www/common/common-util.js @@ -310,6 +310,10 @@ clearTimeout(to); to = setTimeout(Util.bake(f, Util.slice(arguments)), ms); }; + g.clear = function () { + clearTimeout(to); + to = undefined; + }; return g; };