We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Take the following code:
global.install-win??.focus??()
An over-simplified version of the assignments/executions in JS might be:
tmp$0 = global.installWin; tmp$1 = tmp$0.focus; tmp$1();
This doesn't retain the correct function scope and may cause bugs/errors. I would suggest:
tmp$0 = global.installWin; tmp$1 = tmp$0.focus; tmp$1.bind(tmp$0)(); // or perhaps `func.apply()` is better (more performant)?
The text was updated successfully, but these errors were encountered:
Might be cool to soak up 'x is not a function' errors too:
if (typeof(tmp$1) === 'function') { tmp$1.bind(tmp$0)(); }
Sorry, something went wrong.
Thinking about it... might be easier to not bind at all and just call the function in the context of the parent scope:
tmp$0.focus();
No branches or pull requests
Take the following code:
An over-simplified version of the assignments/executions in JS might be:
This doesn't retain the correct function scope and may cause bugs/errors. I would suggest:
The text was updated successfully, but these errors were encountered: