mirror of https://github.com/gorhill/uBlock.git
Fix regression breaking `:remove()`
Related commit/feedback:
- 152120bd9e (commitcomment-66516398)
This commit is contained in:
parent
301b963eff
commit
2177d8163e
|
@ -334,7 +334,7 @@ class PSelector {
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
this.raw = o.raw;
|
this.raw = o.raw;
|
||||||
this.selector = ':root > :root';
|
this.selector = o.selector;
|
||||||
this.tasks = [];
|
this.tasks = [];
|
||||||
const tasks = [];
|
const tasks = [];
|
||||||
if ( Array.isArray(o.tasks) === false ) { return; }
|
if ( Array.isArray(o.tasks) === false ) { return; }
|
||||||
|
@ -344,7 +344,6 @@ class PSelector {
|
||||||
tasks.push(new ctor(task));
|
tasks.push(new ctor(task));
|
||||||
}
|
}
|
||||||
// Initialize only after all tasks have been successfully instantiated
|
// Initialize only after all tasks have been successfully instantiated
|
||||||
this.selector = o.selector;
|
|
||||||
this.tasks = tasks;
|
this.tasks = tasks;
|
||||||
}
|
}
|
||||||
prime(input) {
|
prime(input) {
|
||||||
|
|
Loading…
Reference in New Issue