seaofclouds/pop — pull request #1 by redjohn (2011-10-26 00:34:40+00:00)
Title: 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"); }
});