mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-04 01:59:38 +02:00
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.selector = ':root > :root';
|
||||
this.selector = o.selector;
|
||||
this.tasks = [];
|
||||
const tasks = [];
|
||||
if ( Array.isArray(o.tasks) === false ) { return; }
|
||||
@ -344,7 +344,6 @@ class PSelector {
|
||||
tasks.push(new ctor(task));
|
||||
}
|
||||
// Initialize only after all tasks have been successfully instantiated
|
||||
this.selector = o.selector;
|
||||
this.tasks = tasks;
|
||||
}
|
||||
prime(input) {
|
||||
|
Loading…
Reference in New Issue
Block a user