mirror of https://github.com/gorhill/uBlock.git
Rearrange code flow
This commit is contained in:
parent
123cb0b0f4
commit
36bfa27c30
|
@ -1634,10 +1634,11 @@ Parser.prototype.SelectorCompiler = class {
|
|||
}
|
||||
break;
|
||||
}
|
||||
case 'PseudoClassSelector':
|
||||
case 'PseudoElementSelector':
|
||||
out.push(data.type === 'PseudoClassSelector' ? ':' : '::');
|
||||
out.push(data.name);
|
||||
out.push(':');
|
||||
/* fall through */
|
||||
case 'PseudoClassSelector':
|
||||
out.push(`:${data.name}`);
|
||||
if ( Array.isArray(part.args) ) {
|
||||
const arg = this.astSerialize(part.args);
|
||||
if ( typeof arg !== 'string' ) { return; }
|
||||
|
|
Loading…
Reference in New Issue