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:
Gehad elrobey 2014-06-10 00:24:18 +03:00 committed by Dirk Hohndel
parent 5861513364
commit 29c2f88802

View file

@ -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++)