dimsemenov / Magnific-Popup

Light and responsive lightbox script with focus on performance.
http://dimsemenov.com/plugins/magnific-popup/
MIT License
11.39k stars 3.48k forks source link

Get the triggering element in the callback functions #999

Open paragonn opened 7 years ago

paragonn commented 7 years ago

In the close callback, is it possible to get the triggering element? The challenge that I am having is that I have two close buttons and I would like to run different code in the close callback depending on which button was clicked?

Thanks in advance!