Fix increment order

This commit is contained in:
Dennis Eichhorn 2018-12-10 18:18:53 +01:00
parent 727bf9e559
commit a7742099ae
3 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ const datalistAppend = function (action, callback)
let option;
for (let i = 0; i < dataLength; i++) {
for (let i = 0; i < dataLength; ++i) {
option = document.createElement('option');
option.value = action.data[i][action.text];
option.setAttribute('data-value', action.data[i][action.value]);

View File

@ -18,14 +18,14 @@ const tableAppend = function (action, callback)
let row, cell, text, rawText;
for (let i = 0; i < dataLength; i++) {
for (let i = 0; i < dataLength; ++i) {
if (tbody === null) {
break;
}
row = tbody.insertRow(tbody.rows.length);
for (let j = 0; j < headerLength; j++) {
for (let j = 0; j < headerLength; ++j) {
if (row === null) {
break;
}

View File

@ -36,7 +36,7 @@
this.domObserver = new MutationObserver(function(mutations) {
const length = mutations.length;
for(let i = 0; i < length; i++) {
for(let i = 0; i < length; ++i) {
self.app.eventManager.trigger(mutations[i].target.id + '-' + mutations[i].type, 0, mutations[i]);
}
});