src/js/libs/spiritual-edb.js
function(newnode, oldnode) {
		if (newnode && oldnode) {
			return newnode.id && newnode.id === oldnode.id &&
				this._maybesoft(newnode) &&
				this._maybesoft(oldnode);
		} else {
			return Array.every(newnode.childNodes, function(node) {
				var res = true;
				switch (node.nodeType) {
					case Node.TEXT_NODE:
						res = node.data.trim() === "";
						break;
					case Node.ELEMENT_NODE:
						res = this._assistant.id(node) !== null;
						break;
				}
				return res;
			}, this);
		}
	}
function(newnode, oldnode) {
		if (newnode && oldnode) {
			return newnode.id && newnode.id === oldnode.id &&
				this._maybesoft(newnode) &&
				this._maybesoft(oldnode);
		} else {
			return Array.every(newnode.childNodes, function(node) {
				var res = true;
				switch (node.nodeType) {
					case Node.TEXT_NODE:
						res = node.data.trim() === "";
						break;
					case Node.ELEMENT_NODE:
						res = this._assistant.id(node) !== null;
						break;
				}
				return res;
			}, this);
		}
	}
function ( newnode , oldnode ) { if ( newnode && oldnode ) { return newnode . id && newnode . id === oldnode . id && this . _maybesoft ( newnode ) && this . _maybesoft ( oldnode ) ; } else { return Array . every ( newnode . childNodes , function ( node ) { var res = true ; switch ( node . nodeType ) { case Node . TEXT_NODE : res = node . data . trim ( ) === "" ; break ; case Node . ELEMENT_NODE : res = this . _assistant . id ( node ) !== null ; break ; } return res ; } , this ) ; } }
Are element children candidates for "soft" sibling updates?
1) Both parents must have the same ID
2) All children must have a specified ID
3) All children must be elements or whitespace-only textnodes
@param {Element} newnode
@param {Element} oldnode
@return {boolean}
Are element children candidates for soft sibling updates? 1 ) Both parents must have the same ID 2 ) All children must have a specified ID 3 ) All children must be elements or whitespace - only textnodes