do things properly not like a troll
parent
d92704c374
commit
23ad4a9426
|
@ -92,11 +92,10 @@ GUI_control.prototype.interval_resume = function(name) {
|
||||||
// input = array of timers thats meant to be kept, or nothing
|
// input = array of timers thats meant to be kept, or nothing
|
||||||
// return = returns timers killed in last call
|
// return = returns timers killed in last call
|
||||||
GUI_control.prototype.interval_kill_all = function(keep_array) {
|
GUI_control.prototype.interval_kill_all = function(keep_array) {
|
||||||
|
var self = this;
|
||||||
var timers_killed = 0;
|
var timers_killed = 0;
|
||||||
|
|
||||||
for (var i = (this.interval_array.length - 1); i >= 0; i--) { // reverse iteration
|
for (var i = (this.interval_array.length - 1); i >= 0; i--) { // reverse iteration
|
||||||
var self = this;
|
|
||||||
|
|
||||||
var keep = false;
|
var keep = false;
|
||||||
if (keep_array) { // only run through the array if it exists
|
if (keep_array) { // only run through the array if it exists
|
||||||
keep_array.forEach(function(name) {
|
keep_array.forEach(function(name) {
|
||||||
|
|
Loading…
Reference in New Issue