src/js/libs/spiritual-gui.js
function(condition) {
		return function(base, otherwise) {
			return function() {
				if (condition.apply(this, arguments)) {
					return base.apply(this, arguments);
				} else if (otherwise) {
					return otherwise.apply(this, arguments);
				}
			};
		};
	}
function(condition) {
		return function(base, otherwise) {
			return function() {
				if (condition.apply(this, arguments)) {
					return base.apply(this, arguments);
				} else if (otherwise) {
					return otherwise.apply(this, arguments);
				}
			};
		};
	}
function ( condition ) { return function ( base , otherwise ) { return function ( ) { if ( condition . apply ( this , arguments ) ) { return base . apply ( this , arguments ) ; } else if ( otherwise ) { return otherwise . apply ( this , arguments ) ; } } ; } ; }
Decorate function provided with support for an otherwise operation.
@param {function} condition
Decorate function provided with support for an otherwise operation .