Permalink
Browse files

Option to call looper immediately on startLoop.

  • Loading branch information...
1 parent 88afee5 commit fbc5aec7300116a91fa8269008835fe75ef99e8d @ryanflorence committed Nov 20, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 Source/Loop.js
View
@@ -40,9 +40,10 @@ var Loop = new Class({
return this;
},
- startLoop: function(delay){
+ startLoop: function(delay, now){
if (!this.isLooping){
this.isLooping = true;
+ if (now) this.looper();
this.periodical = this.looper.periodical(delay || this.loopDelay, this);
};
return this;

0 comments on commit fbc5aec

Please sign in to comment.