From afdffc18b9cd5eed18edde953e1a8422500501d0 Mon Sep 17 00:00:00 2001 From: Christian Mengler Date: Fri, 15 Jun 2018 10:58:49 +1000 Subject: [PATCH] Fixed variable scope in generateElements method of Beepers.js --- src/js/Beepers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/Beepers.js b/src/js/Beepers.js index 3b147c5d..33c873c7 100644 --- a/src/js/Beepers.js +++ b/src/js/Beepers.js @@ -75,7 +75,7 @@ Beepers.prototype.isEnabled = function (beeperName) { Beepers.prototype.generateElements = function (template, destination) { var self = this; - for (i = 0; i < self._beepers.length; i++) { + for (var i = 0; i < self._beepers.length; i++) { if (self._beepers[i].visible) { var element = template.clone(); destination.append(element);