src/js/libs/spiritual-gui.js
function(type, time, sig) {
			var map = this._tempname;
			var types = map.types;
			var tick = new gui.Tick(type);
			time = time || 0;
			if (!types[type]) { // !!!!!!!!!!!!!!!!!!!!!!!
				types[type] = true;
				var that = this,
					id = null;
				if (!time) {
					id = setImmediate(function() {
						delete types[type];
						that._doit(tick);
					});
				} else {
					id = setTimeout(function() {
						delete types[type];
						that._doit(tick);
					}, time);
				}
			}
			return tick;
		}
function(type, time, sig) {
			var map = this._tempname;
			var types = map.types;
			var tick = new gui.Tick(type);
			time = time || 0;
			if (!types[type]) { // !!!!!!!!!!!!!!!!!!!!!!!
				types[type] = true;
				var that = this,
					id = null;
				if (!time) {
					id = setImmediate(function() {
						delete types[type];
						that._doit(tick);
					});
				} else {
					id = setTimeout(function() {
						delete types[type];
						that._doit(tick);
					}, time);
				}
			}
			return tick;
		}
function ( type , time , sig ) { var map = this . _tempname ; var types = map . types ; var tick = new gui . Tick ( type ) ; time = time || 0 ; if ( ! types [ type ] ) { // !!!!!!!!!!!!!!!!!!!!!!! types [ type ] = true ; var that = this , id = null ; if ( ! time ) { id = setImmediate ( function ( ) { delete types [ type ] ; that . _doit ( tick ) ; } ) ; } else { id = setTimeout ( function ( ) { delete types [ type ] ; that . _doit ( tick ) ; } , time ) ; } } return tick ; }
Dispatch tick sooner or later.
@param {String} type
@param @optional {number} time
@param @optional {String} sig
Dispatch tick sooner or later .