pop
pop copied to clipboard
Callbacks
Hey, I don't know if you'll find this useful or not, but I added the ability to call a function when the pop is made active/inactive.
You just pass the functions you want run as part of the options
to $.pop:
$.pop({
onPopActive: function() { console.log("pop is active"); },
onPopInactive: function() { console.log("pop is active"); }
});