1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

code review

This commit is contained in:
gorhill 2015-03-12 07:33:20 -04:00
parent f07ddadd4f
commit 8711bfc097

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
});
}