FuncUnit.prototype.exists  function     

Waits until an element exists before running the next action.

//waits until #foo exists before clicking it.
S("#foo").exists().click()
func_unit.exists(callback) -> FuncUnit
{optional:Function}

a callback that is run after the selector exists, but before the next action.

{FuncUnit}

returns the funcUnit for chaining.

© Jupiter IT - JavaScriptMVC Training and Support