Use closures to create functions with pre-filled certain parameters.
Javascript code
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
It can be seen that you can use this to create a function with a dynamic name. It should look awesome and the code will be more readable.