I am creating with many different functions into one, example:
Walk, run
Each of these is a function, let's assume for a human.
He walks or runs.
I want to make whoever is using the plugin to decide what he wants to do, example:
$ ('# human').MyPlugin('run');
note: I do not know if it would be like that: MyPlugin('run');
How do I put several functions in my plugin?
Iwould have to to use methods ?
Thanks ;)