diff --git a/Animation/Canvas/ParticleAnimation.js b/Animation/Canvas/ParticleAnimation.js index 2d23a7d..4e53ed7 100644 --- a/Animation/Canvas/ParticleAnimation.js +++ b/Animation/Canvas/ParticleAnimation.js @@ -134,7 +134,7 @@ particle.setPosition(pos.x, pos.y); particle.setVelocity(vel.x, vel.y); - for (let j = i + 1; j < length; j++) { + for (let j = i + 1; j < length; ++j) { this.updateDistance(particle, this.particles[j]); } } diff --git a/Chart/CalendarChart.js b/Chart/CalendarChart.js index 3f9bb61..7e32230 100644 --- a/Chart/CalendarChart.js +++ b/Chart/CalendarChart.js @@ -93,7 +93,7 @@ let dataLength = self.chart.dataset[i].points.length; - for (let j = 0; j < dataLength; j++) { + for (let j = 0; j < dataLength; ++j) { if (self.chart.dataset[i].points[j].x === d) { return true; } @@ -115,7 +115,7 @@ let dataLength = self.chart.dataset[i].points.length; - for (let j = 0; j < dataLength; j++) { + for (let j = 0; j < dataLength; ++j) { if (self.chart.dataset[i].points[j].x === d) { return "day " + self.chart.color(self.chart.dataset[i].points[j].y); } @@ -136,7 +136,7 @@ let dataLength = self.chart.dataset[i].points.length; - for (let j = 0; j < dataLength; j++) { + for (let j = 0; j < dataLength; ++j) { if (self.chart.dataset[i].points[j].x === d) { return d + ": " + self.chart.dataset[i].points[j].y; } diff --git a/Security/Hash/Sha1.js b/Security/Hash/Sha1.js index 64035e8..a53f355 100644 --- a/Security/Hash/Sha1.js +++ b/Security/Hash/Sha1.js @@ -8,7 +8,7 @@ SHA1 = function (l) l += '€'; for (var n = Math, c = [1518500249, 1859775393, 2400959708, 3395469782, 1732584193, 4023233417, 2562383102, 271733878, 3285377520, 4294967295], s = n.ceil(l.length / 4) + 2, q = n.ceil(s / 16), g = [], a = 0, h = [], j, d, e, f, m, i, b, k; a < q; a++) { g[a] = []; - for (k = 0; k < 16; k++) { + for (k = 0; k < 16; ++k) { function o(b, c) { return l.charCodeAt(a * 64 + k * 4 + b) << c diff --git a/Spreadsheet/Spreadsheet.js b/Spreadsheet/Spreadsheet.js index c1be26c..12949ce 100644 --- a/Spreadsheet/Spreadsheet.js +++ b/Spreadsheet/Spreadsheet.js @@ -36,7 +36,7 @@ for (let i = 0; i < cRows; ++i) { cCols = this.compiledData[i].length(); - for (j = 0; j < cCols; j++) { + for (j = 0; j < cCols; ++j) { this.compiledData[i][j] = Functions.evaluate(this.compiledData[i][j], compiledData); this.drawCell(this.compiledData[i][j]); diff --git a/UI/ActionManager.js b/UI/ActionManager.js index 9128474..9e929f7 100644 --- a/UI/ActionManager.js +++ b/UI/ActionManager.js @@ -79,7 +79,7 @@ let childLength = c.length; - for (let j = 0; j < childLength; j++) { + for (let j = 0; j < childLength; ++j) { this.bindListener(c[j], listeners[i]); } @@ -94,7 +94,7 @@ this.app.eventManager.attach(e.id + 'childList', function(data) { const length = data.addedNodes.length; - for (let j = 0; j < length; j++) { + for (let j = 0; j < length; ++j) { self.bindListener(data.addedNodes[j], listeners[i]); } @@ -125,7 +125,7 @@ const self = this, actionLength = listener.action.length; - for (let j = 1; j < actionLength; j++) { + for (let j = 1; j < actionLength; ++j) { this.app.eventManager.attach(e.id + listener.key + listener.action[j - 1].key, function (data) { self.runAction(e, listener, listener.action[j], data); diff --git a/UI/Component/Form.js b/UI/Component/Form.js index d658828..91fe1e5 100644 --- a/UI/Component/Form.js +++ b/UI/Component/Form.js @@ -215,7 +215,7 @@ success = null; /* Handle responses (can be multiple response object) */ - for (let k = 0; k < responseLength; k++) { + for (let k = 0; k < responseLength; ++k) { tempResponse = response.getByIndex(k); if ((success = form.getSuccess()) !== null) { diff --git a/UI/Component/Input.js b/UI/Component/Input.js index f687ff2..6ed4cfa 100644 --- a/UI/Component/Input.js +++ b/UI/Component/Input.js @@ -117,7 +117,7 @@ let tempResponse = null, success = null; - for (let k = 0; k < responseLength; k++) { + for (let k = 0; k < responseLength; ++k) { tempResponse = response.getByIndex(k); let option = null, diff --git a/UI/Input/Keyboard/KeyboardManager.js b/UI/Input/Keyboard/KeyboardManager.js index a2e5773..3ee4432 100644 --- a/UI/Input/Keyboard/KeyboardManager.js +++ b/UI/Input/Keyboard/KeyboardManager.js @@ -90,7 +90,7 @@ let match = false; for (let i = 0; i < length; ++i) { - for (let j = 0; j < keyLength; j++) { + for (let j = 0; j < keyLength; ++j) { if (actions[i].keys.indexOf(this.down[j]) === -1) { match = false;