Skip to content

Commit

Permalink
Comment changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnemorken committed Dec 8, 2023
1 parent d1b0fe7 commit 989b782
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions view/anyModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ anyModel.prototype.dataSearch = function (options,
// id search
let is_int = Number.isInteger(parseInt(idc));
if ((is_int && parseInt(idc) == parseInt(id)) || (!is_int && idc == id)) {
item = data;
item = data; // Note! Ignoring options.parent in this case
}
}
else {
Expand Down Expand Up @@ -802,7 +802,7 @@ anyModel.prototype.dataSearchMaxId = function (data,type,_prev_type)
type = this.type;
if (!type)
return -1;
// If a non-numerical index is found, return immediately
// If any non-numerical index is found, return immediately
let datakeys = Object.keys(data);
for (const key in datakeys) {
if (datakeys.hasOwnProperty(key)) {
Expand Down Expand Up @@ -1264,7 +1264,7 @@ anyModel.prototype.dataUpdateLinkList = function (options)
// TODO! Not implemented
}
} // for
}
} // if
return true;
}; // dataUpdateLinkList

Expand Down

0 comments on commit 989b782

Please sign in to comment.