HubSpot/vex — pull request #57 by adamschwartz (2014-05-12 18:52:23+00:00)
Title: Fix removal of `".vex-open"` body class when `animationEndSupport` is false

When `animationEndSupport` is false, `vex.getAllVexes().length` was ` in the check to remove the `vex-open` body class name. By introducing a `vexAfterClose` event fired on the body, we guarantee (for both `animationEndSupport` and not) that our check for any remaining vexes on the page will come after the close has actually happened. (Fixes #46)