code review

This commit is contained in:
gorhill 2015-03-12 07:33:20 -04:00
parent f07ddadd4f
commit 8711bfc097
1 changed files with 4 additions and 8 deletions

View File

@ -365,17 +365,13 @@ var selectFilterLists = function(callback) {
// Filter lists
var switches = [];
var lis = uDom('#lists .listEntry');
var lis = uDom('#lists .listEntry'), li;
var i = lis.length;
var path;
while ( i-- ) {
path = lis
.subset(i, 1)
.descendants('a')
.attr('href');
li = lis.at(i);
switches.push({
location: path,
off: lis.subset(i, 1).descendants('input').prop('checked') === false
location: li.descendants('a').attr('href'),
off: li.descendants('input').prop('checked') === false
});
}