core.addons.uiscroll.CoreSnap Class
The main class that implements broadcaster pattern. Ideally subclassed by objects that will perform broadcasting functions.
Constructor
core.addons.uiscroll.CoreSnap
-
opts
Parameters:
-
opts
ObjectAn object containing configurations required by the Core derived class.
-
el
HTMLElementThe node element included in the class composition.
-
Item Index
Properties
Methods
clearProxyHandler
-
method
Core method for clearing proxied function methods.
Parameters:
-
method
StringThe string equivalent of the defined method to clear.
construct
-
options
Core method initialization. This is called automatically on core sub classes.
Parameters:
-
options
ObjectThe object passed on the constructor of a core based class.
delayedConstruct
-
options
Core method initialization. This is called automatically on core sub classes. Adds delay when being called automatically, this allows time to setup all the other classes and manage the sequence of instantiations.
Parameters:
-
options
ObjectThe object passed on the constructor of a core based class.
dispose
-
removeNode
Core method for destroying/cleaning up objects.
Parameters:
-
removeNode
BooleanIf true and there is a node attached in the class (el property) that element is going to be removed upon disposal.
find
-
selector
Core method for searching sub node elements.
Parameters:
-
selector
StringThe selector used for searching sub nodes.
Returns:
An array of HTMLElements, please note that this is not jQuery selected nodes.
findAll
-
selector
Core method for searching sub node elements within the document context.
Parameters:
-
selector
StringThe selector used for searching sub nodes within the document.
Returns:
An array of HTMLElements, please note that this is not jQuery selected nodes.
getProxyHandler
-
method
Returns a scope bound function and stores it on the proxyHandlers property.
Parameters:
-
method
StringThe string equivalent of the defined method name of the class.
Returns:
The scope bound function defined on the parameter.
Properties
node
HTMLElement
The selected HTML element node reference.
proxyHandlers
Object
Property for storing proxied function/methods