return toret;
},
+ containsNode: function(node) {
+ return node && (node.nativeNode === this.nativeNode || node._$.parents().index(this._$) !== -1);
+ },
+
toXML: function() {
var wrapper = $('<div>');
wrapper.append(this._getXMLDOMToDump());
},
containsNode: function(node) {
- return this.root && (node.nativeNode === this.root.nativeNode || node._$.parents().index(this.root._$) !== -1);
+ return this.root && this.root.containsNode(node);
},
getSiblingParents: function(params) {
}
},
+ transaction: function(callback, context) {
+ this.startTransaction();
+ callback.call(context);
+ this.endTransaction();
+ },
+
getNodeByPath: function(path) {
var toret = this.root;
path.forEach(function(idx) {