src/js/libs/spiritual-gui.js
function(type, handler, one) {
			var sig = this.spirit.$contextid;
			if (one) {
				if (this._global) {
					gui.Tick.oneGlobal(type, handler);
				} else {
					gui.Tick.one(type, handler, sig);
				}
			} else {
				if (this._global) {
					gui.Tick.addGlobal(type, handler);
				} else {
					gui.Tick.add(type, handler, sig);
				}
			}
		}
function(type, handler, one) {
			var sig = this.spirit.$contextid;
			if (one) {
				if (this._global) {
					gui.Tick.oneGlobal(type, handler);
				} else {
					gui.Tick.one(type, handler, sig);
				}
			} else {
				if (this._global) {
					gui.Tick.addGlobal(type, handler);
				} else {
					gui.Tick.add(type, handler, sig);
				}
			}
		}
function ( type , handler , one ) { var sig = this . spirit . $contextid ; if ( one ) { if ( this . _global ) { gui . Tick . oneGlobal ( type , handler ) ; } else { gui . Tick . one ( type , handler , sig ) ; } } else { if ( this . _global ) { gui . Tick . addGlobal ( type , handler ) ; } else { gui . Tick . add ( type , handler , sig ) ; } } }
Add handler.
@param {String} type
@param {object|function} handler
@param {boolean} one
Add handler .