NS-vdom Class
Creates a Namespace that can be used accros multiple vdom-modules to share information.
Copyright (c) 2014 ITSA - https://github.com/itsa
New BSD License - http://choosealicense.com/licenses/bsd-3-clause/
Item Index
Methods
Methods
domNodeToVNode
(
Vnode
-
domNode
-
[parentVNode]
Transforms a dom-node into a vnode.
Parameters:
-
domNode
NodeThe dom-node to be transformed
-
[parentVNode]
Vnode optionalthe parent-vnode that belongs to the dom-node
Returns:
Vnode:
the vnode-representation of the dom-node
Properties
body
VElement
Reference to the VElement of document.body (gets its value as soon as it gets refered to)
Default: null
SCRIPT_OR_STYLE_TAG
Object
A hash to identify what tagNames are equal to SCRIPT
or STYLE
.
Default: {SCRIPT: true, STYLE: true}
VALID_NODE_TYPES
Object
A hash with all nodeTypes that should be captured by the vDOM.
Default: {1: true, 3: true, 8: true}