Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

Callbacks #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Callbacks #1

wants to merge 1 commit into from

Conversation

redjohn
Copy link

@redjohn redjohn commented Oct 26, 2011

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant