.until(conditionFunction ,loopContext)

Description: The end for a repeat loop that finishes depending on the result value of the callback function.

conditionFunction – function(count…)
a method that is called once per loop iteration. The return value is evaluated according to its type. See other versions of .until() for possible return values.
All current iteration counts/events (from inner-most to outer-most loop) are passed as arguments.
loopContext – boolean, optional
if true then the current jQuery context starts the next loop iteration. Otherwise the original context from the .repeat() call is used for each iteration.
Defaults to false.