execute it without eval?
i found it on https://stackoverflow.com/questions/30028331/pass-javascript-function-as-data-attribute-and-execute
but the solution suggests eval which is evil to me
You'll need some sort of object to hold all functions, or make them global
Обсуждают сегодня