I have to make it dynamic because I’m calling it from a click and checking some things before deciding which function to call. For example I’m checking screen size and then calling functions based on that as well as another value. The two put together make up the existing function name.
I was thinking of using a switch statement but that would bloat the code and I was really hoping for less code to manage and hopefully a smaller file size. Looks like the method @traq suggested seems to be the better option.
Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".