src/js/libs/spiritual-gui.js
function(nodes) {
			var node, groups = [];

			function containedby(target, others) {
				return others.some(function(other) {
					return gui.DOMPlugin.contains(other, target);
				});
			}
			while ((node = nodes.pop())) {
				if (!containedby(node, nodes)) {
					groups.push(node);
				}
			}
			return groups;
		}
function(nodes) {
			var node, groups = [];

			function containedby(target, others) {
				return others.some(function(other) {
					return gui.DOMPlugin.contains(other, target);
				});
			}
			while ((node = nodes.pop())) {
				if (!containedby(node, nodes)) {
					groups.push(node);
				}
			}
			return groups;
		}
function ( nodes ) { var node , groups = [ ] ; function containedby ( target , others ) { return others . some ( function ( other ) { return gui . DOMPlugin . contains ( other , target ) ; } ) ; } while ( ( node = nodes . pop ( ) ) ) { if ( ! containedby ( node , nodes ) ) { groups . push ( node ) ; } } return groups ; }
Remove from list all nodes that are contained by others.
@param {Array<Element|gui.Spirit>} nodes
@returns {Array<Element|gui.Spirit>}
Remove from list all nodes that are contained by others .