src/js/core.js
function() {
		if(!mfp.isOpen) return;
		_mfpTrigger(BEFORE_CLOSE_EVENT);

		mfp.isOpen = false;
		// for CSS3 animation
		if(mfp.st.removalDelay && !mfp.isLowIE && mfp.supportsTransition )  {
			mfp._addClassToMFP(REMOVING_CLASS);
			setTimeout(function() {
				mfp._close();
			}, mfp.st.removalDelay);
		} else {
			mfp._close();
		}
	}
function() {
		if(!mfp.isOpen) return;
		_mfpTrigger(BEFORE_CLOSE_EVENT);

		mfp.isOpen = false;
		// for CSS3 animation
		if(mfp.st.removalDelay && !mfp.isLowIE && mfp.supportsTransition )  {
			mfp._addClassToMFP(REMOVING_CLASS);
			setTimeout(function() {
				mfp._close();
			}, mfp.st.removalDelay);
		} else {
			mfp._close();
		}
	}
function ( ) { if ( ! mfp . isOpen ) return ; _mfpTrigger ( BEFORE_CLOSE_EVENT ) ; mfp . isOpen = false ; // for CSS3 animation if ( mfp . st . removalDelay && ! mfp . isLowIE && mfp . supportsTransition ) { mfp . _addClassToMFP ( REMOVING_CLASS ) ; setTimeout ( function ( ) { mfp . _close ( ) ; } , mfp . st . removalDelay ) ; } else { mfp . _close ( ) ; } }
Closes the popup
Closes the popup