cjss-group / CJSS

A CSS based web framework
https://cjss.js.org/
MIT License
670 stars 20 forks source link

JS Component scoping without eval. #21

Closed KargJonas closed 5 years ago

KargJonas commented 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.

scottkellum commented 5 years ago

Y’all … ❤️

KargJonas commented 5 years ago

Yes. It's changed now.