run

public function run(Element:String/Element/Array, f:function, s:Object):Object/Array
Executes the specified function on the element by id or dom element node or array of elements/id.

Params

Name Type Description
Element String/Element/Array ID or DOM element object or array with ids or elements.
f function Function to execute for each item.
s Object Optional scope to execute the function in.

Returns

Object/Array Single object or array with objects depending on multiple input or not.