lib/flux-link.js
function LoopChain(cond, fns) {
	if (fns instanceof Array)
		Chain.apply(this, fns);
	else
		Chain.apply(this, slice.call(arguments, 1));
	
	this.cond = this.wrap(cond);
	this.name = '(anonymous loop chain)';
}
function LoopChain(cond, fns) {
	if (fns instanceof Array)
		Chain.apply(this, fns);
	else
		Chain.apply(this, slice.call(arguments, 1));
	
	this.cond = this.wrap(cond);
	this.name = '(anonymous loop chain)';
}
function LoopChain ( cond , fns ) { if ( fns instanceof Array ) Chain . apply ( this , fns ) ; else Chain . apply ( this , slice . call ( arguments , 1 ) ) ; this . cond = this . wrap ( cond ) ; this . name = '(anonymous loop chain)' ; }
A Loop Chain will iterate over its functions until the condition function specified returns
false, standardizing and simplifying the implementation for something that could already be
done with standard serial Chains.
@param cond Conditional function that is evaluated with an environment and an after
@param fns/varargs Functions to use for the body of the chain
A Loop Chain will iterate over its functions until the condition function specified returns false standardizing and simplifying the implementation for something that could already be done with standard serial Chains .