src/js/libs/spiritual-gui.js
function(type, checks) {
		var result = false;
		var list = this._trackedtypes[type];
		if (list) {
			var index = this._checksindex(list, checks);
			if (index > -1) {
				result = true;
				// TODO: this seems to not run when checks is none (undefined)!
				if (gui.Array.remove(list, index) === 0) {
					delete this._trackedtypes[type];
				}
			}
		}
		return result;
	}
function(type, checks) {
		var result = false;
		var list = this._trackedtypes[type];
		if (list) {
			var index = this._checksindex(list, checks);
			if (index > -1) {
				result = true;
				// TODO: this seems to not run when checks is none (undefined)!
				if (gui.Array.remove(list, index) === 0) {
					delete this._trackedtypes[type];
				}
			}
		}
		return result;
	}
function ( type , checks ) { var result = false ; var list = this . _trackedtypes [ type ] ; if ( list ) { var index = this . _checksindex ( list , checks ) ; if ( index > - 1 ) { result = true ; // TODO: this seems to not run when checks is none (undefined)! if ( gui . Array . remove ( list , index ) === 0 ) { delete this . _trackedtypes [ type ] ; } } } return result ; }
Can remove type of given checks? If so, do it now.
@param {String} type
@param {Array<object>} checks
@returns {boolean}
Can remove type of given checks? If so do it now .