You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.
An earlier version of declarative also implemented its own option parsing in order to avoid eval(). However manual parsing has too many downsides. The above code would not work with arrays as values and definitely not with nested objects. As you mention one would also not be able to use colons inside keys and/or values.
Using an immediately invoked function object would be slightly better than eval. Though it wouldn´t be any more secure as far as I know.
You are right, nevertheless I modified my version to include Function and works very well.
Your library works amazingly well and already implemented to create the backbone library for php library that would use meta info for components functionality. It will be focused for Yii framework and wonder if declarative works on dynamic rendering (live events). That could be amazing. Already created php library: called wheels.
Enviado desde mi BlackBerry® de Vodafone
An earlier version of declarative also implemented its own option parsing in order to avoid eval(). However manual parsing has too many downsides. The above code would not work with arrays as values and definitely not with nested objects. As you mention one would also not be able to use colons inside keys and/or values.
Using an immediately invoked function object would be slightly better than eval. Though it wouldn´t be any more secure as far as I know.
Reply to this email directly or view it on GitHub: #3 (comment)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There is an option to avoid the use of
eval
on parseOptions function:cons:
Attributes cannot hold the
:
signAnother way is:
The text was updated successfully, but these errors were encountered: