src/js/libs/spiritual-gui.js
function(type, checks) {
		var result = false;
		var list = this._trackedtypes[type];
		if (!list) {
			list = this._trackedtypes[type] = [];
			result = true;
		} else {
			result = !this._haschecks(list, checks);
		}
		if (result && checks) {
			list.push(checks);
		}
		return result;
	}
function(type, checks) {
		var result = false;
		var list = this._trackedtypes[type];
		if (!list) {
			list = this._trackedtypes[type] = [];
			result = true;
		} else {
			result = !this._haschecks(list, checks);
		}
		if (result && checks) {
			list.push(checks);
		}
		return result;
	}
function ( type , checks ) { var result = false ; var list = this . _trackedtypes [ type ] ; if ( ! list ) { list = this . _trackedtypes [ type ] = [ ] ; result = true ; } else { result = ! this . _haschecks ( list , checks ) ; } if ( result && checks ) { list . push ( checks ) ; } return result ; }
Can add type of given checks?
@param {String} type
@param {Array<object>} checks
@returns {boolean}
Can add type of given checks?