FuncUnit.prototype.offset  function     

Gets an element's offset or waits until the offset is a specified value.

// gets the offset
S("#foo").offset();

// waits until the offset is 100, 200
S("#foo").offset({top: 100, left: 200}) 
func_unit.offset(offset, callback) -> String|funcUnit
{optional:Object|Function}

If provided uses this as a check before continuing to the next action. Or you can provide a function that returns true to continue to the next action.

{optional:Function}

a callback that will run after this action completes.

{String|funcUnit}

if the offset parameter is provided, returns the funcUnit selector for chaining, otherwise returns the css of the selector.

© Jupiter IT - JavaScriptMVC Training and Support