Fix errors from using strict mode

This commit is contained in:
Chocobo1 2018-11-30 18:35:32 +08:00
parent 1cb065edc6
commit ba32525b45
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
9 changed files with 81 additions and 50 deletions

View file

@ -24,10 +24,10 @@
'use strict';
torrentsTable = new TorrentsTable();
torrentPeersTable = new TorrentPeersTable();
searchResultsTable = new SearchResultsTable();
searchPluginsTable = new SearchPluginsTable();
var torrentsTable = new TorrentsTable();
var torrentPeersTable = new TorrentPeersTable();
var searchResultsTable = new SearchResultsTable();
var searchPluginsTable = new SearchPluginsTable();
var updatePropertiesPanel = function() {};
@ -324,7 +324,7 @@ window.addEvent('load', function() {
if (!categoryList)
return;
var childrens = categoryList.childNodes;
for (var i in childrens) {
for (var i = 0; i < childrens.length; ++i) {
if (childrens[i].id == selected_category)
childrens[i].className = "selectedFilter";
else