Open davej opened 9 years ago
Might be cool to soak up 'x is not a function' errors too:
if (typeof(tmp$1) === 'function') {
tmp$1.bind(tmp$0)();
}
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();
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: