Function.simpleDelay v1.5

Purpose: A simple and elegant delay method that can be easily self cleared without the need to add external variables

Demo



Details

Author
Amadeus Demarzi
Current version
v1.5
GitHub
amadeus/Function.SimpleDelay-Mootools
Downloads
10769
Category
Native
Tags
Report
GitHub Issues

Releases


Dependencies

  • _self_/_current_: Core/Function

How to use

Simply include Function.simpleDelay.js along with MooTools 1.3. The delay can be invoked on any function by simply calling:

someFunc.simpleDelay(2000);

To clear the delay, simply call the clear method:

someFunc.simpleClear();

There is no need to assign the delay to a variable like the normal MooTools delay method.

See Docs/example.html and the Source/Function.simpleDelay.js for more example uses and arguments.


Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus