Project Outline
«
pulp javascript framework

Class pulp.nodeList



Extends pulp.node.

Return a collection of pulp.node objects to manipulate a set of DOM Elements

Defined in: pulp.nodeList.js.

Constructor
^ top
new pulp.nodeList()

                  
                  
                  
                    
                    
                    
                    
                    
                                                                              
                    
                      
Requires:
pulp.array
pulp.node
pulp.cssQuery
Field Summary
^ top
getInstance Create a pulp.nodeList object, set it's properties, load results, and return the object
Method Summary
^ top
initialize([selector] [, from=document]) Define the selector and parent element of the nodeList
load() (chainable) Load or reload the results of the selector into this object
include(element) Check if a given element matches the internal selector
delegate(type, handler) (chainable) Observe the parent and fire a handler if a child element matches the selector
stopDelegating(type, handler) (chainable) Stop firing the given delegated event
Field Detail
^ top
pulp.nodeList.getInstance
Create a pulp.nodeList object, set it's properties, load results, and return the object

									
								
									
										
										
										
										
				
								
Method Detail
^ top
initialize([selector] [, from=document])
Define the selector and parent element of the nodeList

										
									
Parameters:
{String|Array|pulp.array} selector?, Default: A CSS string, Array or pulp.array object
{HTMLElement} from?, Default: document The parent element of the node list
load() -> this
Load or reload the results of the selector into this object

										
									
Returns:
{this}
include(element) -> Boolean
Check if a given element matches the internal selector

										
									
Parameters:
{HTMLElement} element
Returns:
{Boolean}
setQuery()

										
									
delegate(type, handler) -> this
Observe the parent and fire a handler if a child element matches the selector

										
									
Parameters:
{String} type The event name
{Function} handler The handler to call
Returns:
{this}
stopDelegating(type, handler) -> this
Stop firing the given delegated event

										
									
Parameters:
{String} type The event name
{Function} handler The handler that was attached
Returns:
{this}
Documentation generated by JsDoc Toolkit 2.1.0 on Tue Aug 18 2009 22:40:30; Template based on jProton by Pedro Simonetti