src/js/libs/spiritual-gui.js
function(type) {
			var result = this.spirit.element.parentNode;
			if (type) {
				var spirit = result.spirit;
				if (spirit && spirit instanceof type) {
					result = spirit;
				} else {
					result = null;
				}
			}
			return result;
		}
function(type) {
			var result = this.spirit.element.parentNode;
			if (type) {
				var spirit = result.spirit;
				if (spirit && spirit instanceof type) {
					result = spirit;
				} else {
					result = null;
				}
			}
			return result;
		}
function ( type ) { var result = this . spirit . element . parentNode ; if ( type ) { var spirit = result . spirit ; if ( spirit && spirit instanceof type ) { result = spirit ; } else { result = null ; } } return result ; }
Parent parent or parent spirit of type.
@param @optional {function} type Spirit constructor
@returns {Element|gui.Spirit}
Parent parent or parent spirit of type .