var ElementNodeData = function (options) {
	TreeNode.call(this)
	this.id = options.id                                        // identity
	this.tagName = options.tagName                              // tag name
	this.css = options.css                                      // computed css
	this.attributes = options.attributes                        // key-value of attribute nodes
	this.vom = options.vom
	if (options.children) {
		for (var i in options.children) {
			this.addChildLast(options.children[i])              // children dom
		}
	}
}
Beispiel #2
0
var TextNodeData = function (options) {
	TreeNode.call(this)
	this.id = options.id
	this.text = options.text
}