bpopup
bpopup copied to clipboard
beforeOpen and beforeClose
Hi, great plugin, can you consider implementing beforeOpen and beforeClose callbacks in addition to onOpen and onClose?
Thanks.
+1, although I believe the current onOpen is fired before the modal is shown. So actually that should be renamed to onBeforeOpen and the current onOpen should be fired after the animations are complete. The current onClose does seem to fire after animation is complete so we'd just need an onBeforeClose.
Thanks @SnidelyWhiplash , I have also implemented an autoOpen option but I'm not sure if if have done it right. I hope that gets in too.