Showing the changes to assets/javascripts/debug.js (1 of 10 files). Show all
Unified · Split
| @@ -75,7 +75,7 @@ this.viewTree = function (view, level, visited) { · 74 unmodified lines | ||
| 75 | 75 | if (visited == null) { |
| 76 | 76 | visited = []; |
| 77 | 77 | } |
| 78 | − if (visited.indexOf(view) >= 0) { | |
| 78 | + if (visited.includes(view)) { | |
| 79 | 79 | return; |
| 80 | 80 | } |
| 81 | 81 | visited.push(view); |