Fix led strip missing 'var' keyword.

10.3.x-maintenance
Dominic Clifton 2016-01-14 02:03:40 +01:00
parent cbe862d018
commit 6009a3db56
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ TABS.led_strip.initialize = function (callback, scrollPosition) {
// Build Grid // Build Grid
var theHTML = []; var theHTML = [];
var theHTMLlength = 0; var theHTMLlength = 0;
for (i=0; i<256; i++) { for (var i = 0; i < 256; i++) {
theHTML[theHTMLlength++] = ('<div class="gPoint"><div class="indicators"><span class="north"></span><span class="south"></span><span class="west"></span><span class="east"></span><span class="up">U</span><span class="down">D</span></div><span class="wire"></span></div>'); theHTML[theHTMLlength++] = ('<div class="gPoint"><div class="indicators"><span class="north"></span><span class="south"></span><span class="west"></span><span class="east"></span><span class="up">U</span><span class="down">D</span></div><span class="wire"></span></div>');
} }
$('.mainGrid').html(theHTML.join('')); $('.mainGrid').html(theHTML.join(''));