From 23ad4a9426cde2e23c8da060516ed7fe716f3d8d Mon Sep 17 00:00:00 2001 From: cTn Date: Sat, 22 Feb 2014 11:19:18 +0100 Subject: [PATCH] do things properly not like a troll --- js/gui.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/gui.js b/js/gui.js index cd84faad..f01cfef0 100644 --- a/js/gui.js +++ b/js/gui.js @@ -92,11 +92,10 @@ GUI_control.prototype.interval_resume = function(name) { // input = array of timers thats meant to be kept, or nothing // return = returns timers killed in last call GUI_control.prototype.interval_kill_all = function(keep_array) { + var self = this; var timers_killed = 0; for (var i = (this.interval_array.length - 1); i >= 0; i--) { // reverse iteration - var self = this; - var keep = false; if (keep_array) { // only run through the array if it exists keep_array.forEach(function(name) {