mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-01 16:33:06 +01:00
code review re. #134
This commit is contained in:
parent
af5aeeda6c
commit
28fbda6607
@ -910,10 +910,9 @@ FilterHostnameDict.prototype.freeze = function() {
|
||||
var bucket;
|
||||
for ( var key in buckets ) {
|
||||
bucket = buckets[key];
|
||||
if ( typeof bucket !== 'object' ) {
|
||||
continue;
|
||||
if ( typeof bucket === 'object' ) {
|
||||
buckets[key] = this.freezeBucket(bucket);
|
||||
}
|
||||
buckets[key] = this.freezeBucket(bucket);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -159,7 +159,7 @@
|
||||
|
||||
var µb = this;
|
||||
|
||||
var onCompiledListLoaded = function() {
|
||||
var onSaved = function() {
|
||||
var compiledFilters = µb.compileFilters(filters);
|
||||
var snfe = µb.staticNetFilteringEngine;
|
||||
var cfe = µb.cosmeticFilteringEngine;
|
||||
@ -176,13 +176,6 @@
|
||||
µb.cosmeticFilteringEngine.freeze();
|
||||
};
|
||||
|
||||
var onSaved = function(details) {
|
||||
if ( details.error ) {
|
||||
return;
|
||||
}
|
||||
µb.getCompiledFilterList(µb.userFiltersPath, onCompiledListLoaded);
|
||||
};
|
||||
|
||||
var onLoaded = function(details) {
|
||||
if ( details.error ) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user