src/js/libs/spiritual-gui.js
function(node, skip, id) {
		var list = [];
		new gui.Crawler(id).descend(node, {
			handleSpirit: function(spirit) {
				if (skip && spirit.element === node) {
					// nothing
				} else if (!spirit.life.destructed) {
					list.push(spirit);
				}
			}
		});
		return list;
	}
function(node, skip, id) {
		var list = [];
		new gui.Crawler(id).descend(node, {
			handleSpirit: function(spirit) {
				if (skip && spirit.element === node) {
					// nothing
				} else if (!spirit.life.destructed) {
					list.push(spirit);
				}
			}
		});
		return list;
	}
function ( node , skip , id ) { var list = [ ] ; new gui . Crawler ( id ) . descend ( node , { handleSpirit : function ( spirit ) { if ( skip && spirit . element === node ) { // nothing } else if ( ! spirit . life . destructed ) { list . push ( spirit ) ; } } } ) ; return list ; }
Collect non-destructed spirits from element and descendants.
@param {Node} node
@param @optional {boolean} skip Skip start element
@returns {Array<gui.Spirit>}
Collect non - destructed spirits from element and descendants .