src/js/libs/spiritual-gui.js
function(action) {
			var list = this._trackedtypes[action.type];
			if (list) {
				list.forEach(function(checks) {
					var handler = checks[0];
					var matches = checks[1] === action.global;
					var hacking = handler === this.spirit && this.$handleownaction;
					if (matches && (handler !== action.target || hacking)) {
						handler.onaction(action);
					}
				}, this);
			}
		}
function(action) {
			var list = this._trackedtypes[action.type];
			if (list) {
				list.forEach(function(checks) {
					var handler = checks[0];
					var matches = checks[1] === action.global;
					var hacking = handler === this.spirit && this.$handleownaction;
					if (matches && (handler !== action.target || hacking)) {
						handler.onaction(action);
					}
				}, this);
			}
		}
function ( action ) { var list = this . _trackedtypes [ action . type ] ; if ( list ) { list . forEach ( function ( checks ) { var handler = checks [ 0 ] ; var matches = checks [ 1 ] === action . global ; var hacking = handler === this . spirit && this . $handleownaction ; if ( matches && ( handler !== action . target || hacking ) ) { handler . onaction ( action ) ; } } , this ) ; } }
Handle action. If it matches listeners, the action will be
delegated to the spirit. Called by crawler in `gui.Action`.
@see {gui.Action#dispatch}
@param {gui.Action} action
Handle action . If it matches listeners the action will be delegated to the spirit . Called by crawler in gui . Action .