src/js/libs/spiritual-gui.js
function(arg, handler) {
		handler = handler ? handler : this.spirit;
		gui.Array.make(arg).forEach(function(type) {
			if (this._addchecks(type, [handler])) {
				if (!this._handlers[type]) {
					this._handlers[type] = [];
				}
				this._handlers[type].push(handler);
			}
		}, this);
		return this.spirit;
	}
function(arg, handler) {
		handler = handler ? handler : this.spirit;
		gui.Array.make(arg).forEach(function(type) {
			if (this._addchecks(type, [handler])) {
				if (!this._handlers[type]) {
					this._handlers[type] = [];
				}
				this._handlers[type].push(handler);
			}
		}, this);
		return this.spirit;
	}
function ( arg , handler ) { handler = handler ? handler : this . spirit ; gui . Array . make ( arg ) . forEach ( function ( type ) { if ( this . _addchecks ( type , [ handler ] ) ) { if ( ! this . _handlers [ type ] ) { this . _handlers [ type ] = [ ] ; } this . _handlers [ type ] . push ( handler ) ; } } , this ) ; return this . spirit ; }
Add one or more action handlers.
@param {object} arg
@param @optional {object} handler implements LifeListener
interface, defaults to this.spirit
@returns {gui.Spirit}
Add one or more action handlers .