Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Prepped for forge
- Loading branch information
1 parent
5ce2c1b
commit 0d04f0d
Showing
4 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,33 @@ | ||
Loop | ||
==== | ||
|
||
A Utility Class. Its methods can be implemented with [Class-implement][1] into any [Class][2]. Used to run a class method on a periodical. | ||
![Loop](http://github.com/rpflorence/Loop/raw/master/Assets/logo.png) | ||
|
||
A Utility Class. Its methods can be implemented with Class-implement into any Class. Used to run a class method on a periodical. | ||
|
||
Useful in galleries, slideshows, tickers, sprite animations, pulsing, logout scripts, etc. Anything that needs to run the same function repeatedly. | ||
|
||
How to use | ||
---------- | ||
|
||
### Example: | ||
|
||
var Widget = new Class({ | ||
|
||
Implements: Loop, | ||
|
||
initialize: function(log){ | ||
this.setLoop(this.update, 1000); | ||
this.log = document.id(log); | ||
}, | ||
|
||
update: function(count){ | ||
this.log.set('text',"Looped " + count + " times"); | ||
} | ||
|
||
}); | ||
|
||
var myWidget = new Widget('log').startLoop(); | ||
|
||
|
||
View the [MooDoc](http://moodocs.net/rpflo/mootools-rpflo/Loop) for usage and examples. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: Loop | ||
author: Ryan Florence | ||
category: Utilities | ||
tags: [mixin] | ||
docs: http://moodocs.net/rpflo/mootools-rpflo/Loop | ||
current: 1.0 |