remove multiple next()

This commit is contained in:
yuanchuan 2017-02-25 09:28:53 +08:00
parent 129cc209b1
commit 4047c2833b
2 changed files with 2 additions and 3 deletions

View File

@ -207,7 +207,8 @@ function compose_tokens(tokens, set, coords) {
case 'psudo': {
if (token.selector.startsWith(':doodle')) {
token.selector = token.selector.replace(/^\:+doodle/, ':host');
token.selector =
token.selector.replace(/^\:+doodle/, ':host');
}
let is_host_selector =
@ -322,7 +323,6 @@ function read_property(it) {
else if (!is.white_space(c)) prop += c;
it.next();
}
it.next();
return prop;
}

View File

@ -67,7 +67,6 @@ function read_property(it) {
else if (!is.white_space(c)) prop += c;
it.next();
}
it.next();
return prop;
}