-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bad conversion of vars after usage #203
Comments
should be: let getComputedStyleRX = /(\-([a-z]){1})/g;
// getComputedStyle shim, from http://stackoverflow.com/a/21797294
let getComputedStyle = this.getComputedStyle ||
function(el, pseudo) {
this.getPropertyValue = function(prop) {
if (prop === 'float') { prop = 'styleFloat'; }
if (getComputedStyleRX.test(prop)) { prop.replace(getComputedStyleRX, (_, _char)=> _char.toUpperCase()
); }
let { currentStyle } = el;
return (currentStyle != null ? currentStyle[prop] : void 0) || null;
};
return this;
}; |
This is handled by add-variable-declarations and is tracked in eventualbuddha/add-variable-declarations#3. |
Fixed in v2.9.0 (repl). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
becomes
The text was updated successfully, but these errors were encountered: