zurb/foundation — pull request #302 by alettieri (2012-02-08 17:12:49+00:00)
Title: Callback Events : onOpening, onOpened, onClosing, onClosed

I used reveal on a recent project and required needed some callback events to hide/unhide other elements on the page based on the state of the reveal modal.

Here is what I added:

1. onOpening - Callback made when the modal is preparing to open, visibility is hidden.
2. onOpened - Callback made when modal is fully opened, visibility is set to visible.
3. onClosing - Callback made when modal is preparing to close, either esc, close button or modal background are clicked.
4. onClosed - Callback made when modal has fully closed, visibility is hidden.