1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-07 03:12:33 +01:00

Fix regression breaking :remove()

Related commit/feedback:
- 152120bd9e (commitcomment-66516398)
This commit is contained in:
Raymond Hill 2022-02-11 15:13:25 -05:00
parent 301b963eff
commit 2177d8163e
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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) {