src/js/core.js
function(el, options) {
		var eHandler = function(e) {
			e.mfpEl = this;
			mfp._openClick(e, el, options);
		};

		if(!options) {
			options = {};
		}

		var eName = 'click.magnificPopup';
		options.mainEl = el;

		if(options.items) {
			options.isObj = true;
			el.off(eName).on(eName, eHandler);
		} else {
			options.isObj = false;
			if(options.delegate) {
				el.off(eName).on(eName, options.delegate , eHandler);
			} else {
				options.items = el;
				el.off(eName).on(eName, eHandler);
			}
		}
	}
function(el, options) {
		var eHandler = function(e) {
			e.mfpEl = this;
			mfp._openClick(e, el, options);
		};

		if(!options) {
			options = {};
		}

		var eName = 'click.magnificPopup';
		options.mainEl = el;

		if(options.items) {
			options.isObj = true;
			el.off(eName).on(eName, eHandler);
		} else {
			options.isObj = false;
			if(options.delegate) {
				el.off(eName).on(eName, options.delegate , eHandler);
			} else {
				options.items = el;
				el.off(eName).on(eName, eHandler);
			}
		}
	}
function ( el , options ) { var eHandler = function ( e ) { e . mfpEl = this ; mfp . _openClick ( e , el , options ) ; } ; if ( ! options ) { options = { } ; } var eName = 'click.magnificPopup' ; options . mainEl = el ; if ( options . items ) { options . isObj = true ; el . off ( eName ) . on ( eName , eHandler ) ; } else { options . isObj = false ; if ( options . delegate ) { el . off ( eName ) . on ( eName , options . delegate , eHandler ) ; } else { options . items = el ; el . off ( eName ) . on ( eName , eHandler ) ; } } }
Initializes single popup or a group of popups
Initializes single popup or a group of popups