Class Index | File Index

Classes


Function Namespace Pot.forEver


Defined in: <potlite.js>.

Function Namespace Summary
Constructor Attributes Constructor Name and Description
 
Pot.forEver(callback, (context))
Iterates indefinitely until "Pot.StopIteration" is thrown.
Field Summary
Field Attributes Field Name and Description
 
Iterates "forEver" loop with slower speed.
 
Iterates "forEver" loop with fast speed.
 
Iterates "forEver" loop with slowest speed.
 
Iterates "forEver" loop with fastest speed.
 
Iterates "forEver" loop with default speed.
 
Iterates "forEver" loop with faster speed.
 
Iterates "forEver" loop with slow speed.
Function Namespace Detail
Pot.forEver(callback, (context))
Iterates indefinitely until "Pot.StopIteration" is thrown.
  var s = '', a = 'abc*';
  Pot.forEver(function(i) {
    s += i + ':' + a;
    if (s.length > 50) {
      throw Pot.StopIteration;
    }
  });
  debug(s);
  // @results
  // '0:abc*1:abc*2:abc*3:abc*4:abc*5:abc*6:abc*7:abc*8:abc*'
Parameters:
{Function} callback
An iterable function. Throw Pot.StopIteration if you want to stop the loop.
{*} (context)
Optionally, context object. (i.e. this)
Field Detail
{Function} doze
Iterates "forEver" loop with slower speed.

{Function} fast
Iterates "forEver" loop with fast speed.

{Function} limp
Iterates "forEver" loop with slowest speed.

{Function} ninja
Iterates "forEver" loop with fastest speed.

{Function} normal
Iterates "forEver" loop with default speed.

{Function} rapid
Iterates "forEver" loop with faster speed.

{Function} slow
Iterates "forEver" loop with slow speed.

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Sep 21 2012 19:35:45 GMT+0900 (JST)