Improve increments

This commit is contained in:
Dennis Eichhorn 2018-02-10 21:51:01 +01:00
parent 4eb521f3c4
commit d00924bcd6
8 changed files with 12 additions and 12 deletions

View File

@ -134,7 +134,7 @@
particle.setPosition(pos.x, pos.y); particle.setPosition(pos.x, pos.y);
particle.setVelocity(vel.x, vel.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]); this.updateDistance(particle, this.particles[j]);
} }
} }

View File

@ -93,7 +93,7 @@
let dataLength = self.chart.dataset[i].points.length; 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) { if (self.chart.dataset[i].points[j].x === d) {
return true; return true;
} }
@ -115,7 +115,7 @@
let dataLength = self.chart.dataset[i].points.length; 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) { if (self.chart.dataset[i].points[j].x === d) {
return "day " + self.chart.color(self.chart.dataset[i].points[j].y); return "day " + self.chart.color(self.chart.dataset[i].points[j].y);
} }
@ -136,7 +136,7 @@
let dataLength = self.chart.dataset[i].points.length; 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) { if (self.chart.dataset[i].points[j].x === d) {
return d + ": " + self.chart.dataset[i].points[j].y; return d + ": " + self.chart.dataset[i].points[j].y;
} }

View File

@ -8,7 +8,7 @@ SHA1 = function (l)
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++) { 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] = []; g[a] = [];
for (k = 0; k < 16; k++) { for (k = 0; k < 16; ++k) {
function o(b, c) function o(b, c)
{ {
return l.charCodeAt(a * 64 + k * 4 + b) << c return l.charCodeAt(a * 64 + k * 4 + b) << c

View File

@ -36,7 +36,7 @@
for (let i = 0; i < cRows; ++i) { for (let i = 0; i < cRows; ++i) {
cCols = this.compiledData[i].length(); 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.compiledData[i][j] = Functions.evaluate(this.compiledData[i][j], compiledData);
this.drawCell(this.compiledData[i][j]); this.drawCell(this.compiledData[i][j]);

View File

@ -79,7 +79,7 @@
let childLength = c.length; let childLength = c.length;
for (let j = 0; j < childLength; j++) { for (let j = 0; j < childLength; ++j) {
this.bindListener(c[j], listeners[i]); this.bindListener(c[j], listeners[i]);
} }
@ -94,7 +94,7 @@
this.app.eventManager.attach(e.id + 'childList', function(data) { this.app.eventManager.attach(e.id + 'childList', function(data) {
const length = data.addedNodes.length; 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]); self.bindListener(data.addedNodes[j], listeners[i]);
} }
@ -125,7 +125,7 @@
const self = this, const self = this,
actionLength = listener.action.length; 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) this.app.eventManager.attach(e.id + listener.key + listener.action[j - 1].key, function (data)
{ {
self.runAction(e, listener, listener.action[j], data); self.runAction(e, listener, listener.action[j], data);

View File

@ -215,7 +215,7 @@
success = null; success = null;
/* Handle responses (can be multiple response object) */ /* 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); tempResponse = response.getByIndex(k);
if ((success = form.getSuccess()) !== null) { if ((success = form.getSuccess()) !== null) {

View File

@ -117,7 +117,7 @@
let tempResponse = null, let tempResponse = null,
success = null; success = null;
for (let k = 0; k < responseLength; k++) { for (let k = 0; k < responseLength; ++k) {
tempResponse = response.getByIndex(k); tempResponse = response.getByIndex(k);
let option = null, let option = null,

View File

@ -90,7 +90,7 @@
let match = false; let match = false;
for (let i = 0; i < length; ++i) { 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) { if (actions[i].keys.indexOf(this.down[j]) === -1) {
match = false; match = false;