linb.iBox

Instance Methods

each ( fun )
To call fun on each node.
fun: Function. Functions to call.

exists ( node )
To determine if there exists a specific node.
node: DOM node. Node to search for.

get ( index )
To get Dom node by index.
index: Integer. Index of DOM node.

isEmpty ( )
To determine whether any nodes are contained.
returns: Boolean.

length ( )
To get number of DOM nodes.
returns: Integer. Number of Dom nodes.

pop ( )
To remove a DOM node.
returns: DOM node.

push ( o )
To add a DOM node.
o: DOM node.

Static Methods

create ( tag, id )
To create DOM node with specific tag and id.
tag: String. Tag name.
id: String. DOM id.

support ( key )
To test whether property or function named key is supported.
returns: Boolean. True for supported, false for not supported.