jQuery Function Toggle Plugin
Already some while ago, I created a jQuery plugin which I call jQuery Function Toggle.
The idea is that upon successive events (e.g. consecutive clicks), the plugin loops through functions and executes one for each event.
Example:
The function funcToggle()
basically provides the same interface as bind()
, with the difference that it accepts more than one function.
The source code is available on GitHub.