public/js/lib/alertify.js
function (elem, wait) {
				// Unary Plus: +"2" === 2
				var timer = (wait && !isNaN(wait)) ? +wait : this.delay,
				    self  = this,
				    hideElement, transitionDone;

				// set click event on log messages
				this.bind(elem, "click", function () {
					hideElement(elem);
				});
				// Hide the dialog box after transition
				// This ensure it doens't block any element from being clicked
				transitionDone = function (event) {
					event.stopPropagation();
					// unbind event so function only gets called once
					self.unbind(this, self.transition.type, transitionDone);
					// remove log message
					elLog.removeChild(this);
					if (!elLog.hasChildNodes()) elLog.className += " alertify-logs-hidden";
				};
				// this sets the hide class to transition out
				// or removes the child if css transitions aren't supported
				hideElement = function (el) {
					// ensure element exists
					if (typeof el !== "undefined" && el.parentNode === elLog) {
						// whether CSS transition exists
						if (self.transition.supported) {
							self.bind(el, self.transition.type, transitionDone);
							el.className += " alertify-log-hide";
						} else {
							elLog.removeChild(el);
							if (!elLog.hasChildNodes()) elLog.className += " alertify-logs-hidden";
						}
					}
				};
				// never close (until click) if wait is set to 0
				if (wait === 0) return;
				// set timeout to auto close the log message
				setTimeout(function () { hideElement(elem); }, timer);
			}
function (elem, wait) {
				// Unary Plus: +"2" === 2
				var timer = (wait && !isNaN(wait)) ? +wait : this.delay,
				    self  = this,
				    hideElement, transitionDone;

				// set click event on log messages
				this.bind(elem, "click", function () {
					hideElement(elem);
				});
				// Hide the dialog box after transition
				// This ensure it doens't block any element from being clicked
				transitionDone = function (event) {
					event.stopPropagation();
					// unbind event so function only gets called once
					self.unbind(this, self.transition.type, transitionDone);
					// remove log message
					elLog.removeChild(this);
					if (!elLog.hasChildNodes()) elLog.className += " alertify-logs-hidden";
				};
				// this sets the hide class to transition out
				// or removes the child if css transitions aren't supported
				hideElement = function (el) {
					// ensure element exists
					if (typeof el !== "undefined" && el.parentNode === elLog) {
						// whether CSS transition exists
						if (self.transition.supported) {
							self.bind(el, self.transition.type, transitionDone);
							el.className += " alertify-log-hide";
						} else {
							elLog.removeChild(el);
							if (!elLog.hasChildNodes()) elLog.className += " alertify-logs-hidden";
						}
					}
				};
				// never close (until click) if wait is set to 0
				if (wait === 0) return;
				// set timeout to auto close the log message
				setTimeout(function () { hideElement(elem); }, timer);
			}
function ( elem , wait ) { // Unary Plus: +"2" === 2 var timer = ( wait && ! isNaN ( wait ) ) ? + wait : this . delay , self = this , hideElement , transitionDone ; // set click event on log messages this . bind ( elem , "click" , function ( ) { hideElement ( elem ) ; } ) ; // Hide the dialog box after transition // This ensure it doens't block any element from being clicked transitionDone = function ( event ) { event . stopPropagation ( ) ; // unbind event so function only gets called once self . unbind ( this , self . transition . type , transitionDone ) ; // remove log message elLog . removeChild ( this ) ; if ( ! elLog . hasChildNodes ( ) ) elLog . className += " alertify-logs-hidden" ; } ; // this sets the hide class to transition out // or removes the child if css transitions aren't supported hideElement = function ( el ) { // ensure element exists if ( typeof el !== "undefined" && el . parentNode === elLog ) { // whether CSS transition exists if ( self . transition . supported ) { self . bind ( el , self . transition . type , transitionDone ) ; el . className += " alertify-log-hide" ; } else { elLog . removeChild ( el ) ; if ( ! elLog . hasChildNodes ( ) ) elLog . className += " alertify-logs-hidden" ; } } } ; // never close (until click) if wait is set to 0 if ( wait === 0 ) return ; // set timeout to auto close the log message setTimeout ( function ( ) { hideElement ( elem ) ; } , timer ) ; }
Close the log messages

@param  {Object} elem    HTML Element of log message to close
@param  {Number} wait    [optional] Time (in ms) to wait before automatically hiding the message, if 0 never hide

@return {undefined}
Close the log messages