Endle / fireSeqSearch

Initialization in variable declarations against recommended approach JS-0119
Anti-pattern
Minor
9 months ago2 years old
Variable 'stoppingFunction' should be initialized on declaration
1164            }
1165
1166            i = 0
1167            var loopingFunction, stoppingFunction1168            if (settings.wait !== 0) {
1169                loopingFunction = window.setTimeout
1170                stoppingFunction = window.clearTimeout
Variable 'loopingFunction' should be initialized on declaration
1164            }
1165
1166            i = 0
1167            var loopingFunction, stoppingFunction1168            if (settings.wait !== 0) {
1169                loopingFunction = window.setTimeout
1170                stoppingFunction = window.clearTimeout
Variable 'y' should be initialized on declaration
1107                    canvas.getContext('2d').getImageData(0, 0, ngx * g, ngy * g).data
1108
1109                gx = ngx
1110                var x, y1111                while (gx--) {
1112                    grid[gx] = []
1113                    gy = ngy
Variable 'x' should be initialized on declaration
1107                    canvas.getContext('2d').getImageData(0, 0, ngx * g, ngy * g).data
1108
1109                gx = ngx
1110                var x, y1111                while (gx--) {
1112                    grid[gx] = []
1113                    gy = ngy
Variable 'gx' should be initialized on declaration
1067               if not, update the grid to the current canvas state */
1068            grid = []
1069
1070            var gx, gy, i1071            if (!canvas.getContext || settings.clearCanvas) {
1072                elements.forEach(function (el) {
1073                    if (el.getContext) {