diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2014-06-10 00:24:18 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-15 09:20:40 -0700 |
commit | 29c2f88802dff3708a323f7673966d4aee71ba82 (patch) | |
tree | 2a54721b8b6d209b9c34e1171d5a0cbb12a35447 /theme | |
parent | 5861513364e18dbcbcb3fea307ac1df8bae578b9 (diff) | |
download | subsurface-29c2f88802dff3708a323f7673966d4aee71ba82.tar.gz |
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>
Diffstat (limited to 'theme')
-rw-r--r-- | theme/list_lib.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js index bf1ef59b1..d7a01c1c0 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -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++) |