src/js/libs/spiritual-gui.js
function(node, skip, one, force) {
		node = node instanceof gui.Spirit ? node.element : node;
		node = node.nodeType === Node.DOCUMENT_NODE ? node.documentElement : node;
		if (force || this._handles(node)) {
			node.setAttribute('gui-matarializing', 'true');
			this._materialize(node, skip, one);
			node.removeAttribute('gui-matarializing');
		}
	}
function(node, skip, one, force) {
		node = node instanceof gui.Spirit ? node.element : node;
		node = node.nodeType === Node.DOCUMENT_NODE ? node.documentElement : node;
		if (force || this._handles(node)) {
			node.setAttribute('gui-matarializing', 'true');
			this._materialize(node, skip, one);
			node.removeAttribute('gui-matarializing');
		}
	}
function ( node , skip , one , force ) { node = node instanceof gui . Spirit ? node . element : node ; node = node . nodeType === Node . DOCUMENT_NODE ? node . documentElement : node ; if ( force || this . _handles ( node ) ) { node . setAttribute ( 'gui-matarializing' , 'true' ) ; this . _materialize ( node , skip , one ) ; node . removeAttribute ( 'gui-matarializing' ) ; } }
Destruct spirits from element and subtree. Using a two-phased destruction sequence
to minimize the risk of plugins invoking already destructed plugins during destruct.
@param {Node|gui.Spirit} node
@param {boolean} skip Skip the element?
@param {boolean} one Skip the subtree?
@param {boolean} force
Destruct spirits from element and subtree . Using a two - phased destruction sequence to minimize the risk of plugins invoking already destructed plugins during destruct .