Closed KargJonas closed 5 years ago
JS component scoping is now done with new Function(js).call(element) instead of eval. This is not only way more elegant but a lot safer since the previous implementation would also replace "this" in strings and comments.
new Function(js).call(element)
Y’all … ❤️
Yes. It's changed now.
JS component scoping is now done with
new Function(js).call(element)
instead of eval. This is not only way more elegant but a lot safer since the previous implementation would also replace "this" in strings and comments.