src/js/libs/spiritual-gui.js
function(type) {
			var result = [];
			var me = this.spirit.element;
			new gui.Crawler().descend(me, {
				handleElement: function(element) {
					if (!type && element !== me) {
						result.push(element);
					}
				},
				handleSpirit: function(spirit) {
					if (type && spirit instanceof type) {
						if (spirit.element !== me) {
							result.push(spirit);
						}
					}
				}
			});
			return result;
		}
function(type) {
			var result = [];
			var me = this.spirit.element;
			new gui.Crawler().descend(me, {
				handleElement: function(element) {
					if (!type && element !== me) {
						result.push(element);
					}
				},
				handleSpirit: function(spirit) {
					if (type && spirit instanceof type) {
						if (spirit.element !== me) {
							result.push(spirit);
						}
					}
				}
			});
			return result;
		}
function ( type ) { var result = [ ] ; var me = this . spirit . element ; new gui . Crawler ( ) . descend ( me , { handleElement : function ( element ) { if ( ! type && element !== me ) { result . push ( element ) ; } } , handleSpirit : function ( spirit ) { if ( type && spirit instanceof type ) { if ( spirit . element !== me ) { result . push ( spirit ) ; } } } } ) ; return result ; }
All descendant elements or all descendant spirits of type.
@param @optional {function} type Spirit constructor
@returns {Array<Element|gui.Spirit>}
All descendant elements or all descendant spirits of type .