dinbror / bpopup

bPopup is a lightweight jQuery modal popup plugin (only 1.34KB gzipped). It doesn't create or style your popup but provides you with all the logic like centering, modal overlay, events and more. It gives you a lot of opportunities to customize so it will fit your needs.
http://dinbror.dk/bPopup
427 stars 260 forks source link

how know in onClose function who triggered? #23

Closed gine closed 10 years ago

gine commented 10 years ago

Using onClose option and setting a mine function bPopup losts who had called the event. I think that it's an important information because i can decide to make different action for different close event.

Or if it's possible, how i can found that information?

dinbror commented 10 years ago

Im not sure I understand! Do you want to know what triggered the close event? Because you should be in control of that yourself!

Do you have an example?