pop icon indicating copy to clipboard operation
pop copied to clipboard

Callbacks

Open redjohn opened this issue 13 years ago • 0 comments

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"); }
});

redjohn avatar Oct 26 '11 00:10 redjohn