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
1 changed files with 1 additions and 2 deletions

View File

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