Skip to content

Commit

Permalink
eqeqeq
Browse files Browse the repository at this point in the history
  • Loading branch information
Erwin Dondorp committed Aug 7, 2021
1 parent feec224 commit d0c7d54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion saltgui/static/hilitor/hilitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function Hilitor(start, id, tag)
for(var i=0; i < node.childNodes.length; i++)
this.hiliteWords(node.childNodes[i]);
}
if(node.nodeType == 3) { // NODE_TEXT
if(node.nodeType === 3) { // NODE_TEXT
// limit the number of highlighted matches to 25 otherwise the DOM grows rediculously
// and performance drops with it. and it is still a good first indication.
let nv, regs;
Expand Down
2 changes: 1 addition & 1 deletion saltgui/static/sorttable/sorttable.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export class SortTable {
each sort function takes two parameters, a and b
you are comparing a[0] and b[0] */
static sort_alpha (a,b) {
if (a[0]==b[0]) return 0;
if (a[0]===b[0]) return 0;
if (a[0]<b[0]) return -1;
return 1;
}
Expand Down

0 comments on commit d0c7d54

Please sign in to comment.