mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
HTML: define the visited array type to boolean
The boolean array must be defined explicitly, to prevent type casting. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5861513364
commit
29c2f88802
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ function sort_it(sortOn,function_){
|
|||
var res = new Array();
|
||||
var visited = new Array(itemsToShow.length);
|
||||
for(var j=0;j<itemsToShow.length;j++){
|
||||
visited[j]=0;
|
||||
visited[j]=false;
|
||||
}
|
||||
for(var i=0;i< itemsToShow.length ;i++){
|
||||
for(var j=0;j<itemsToShow.length;j++)
|
||||
|
|
Loading…
Add table
Reference in a new issue