FunctionStack
A simple Function-Stack class for mootools, allowing periodical calls to an unlimited function stack
How is this class different from Class.Chain?
This class differentiate from Class.Chain in few ways:
- It is ment to be used as a periodical function caller (the
play
method)
- It allows you to pass arguments to the called functions.
- It is meant to be used as a standalone rather than be extended. This is why i chose to use generic method calls (such as
play
, reset
, push
etc.), which will probably be overriden
Simple Usage Example
Periodical Example
Passing Arguments
Note that this can be done with play
as well