visionmedia/uikit — pull request #44 by HenrikJoreteg (2012-04-25 06:39:29+00:00)
Title: Slight tweak to when `show` and `hide` events are emitted.

Hey, dude.

The `show` event was being emitted immediately when showing dialogs, but if I want to do something with the contents of the dialog such as `.focus()` on an input I can't do that until it's attached to the DOM. So I moved `show` to trigger a bit later. Figured I'd toss it back, if you thought it made sense.

Also, and perhaps this was intentional. But calling `hide` with a delay would trigger the `hide` event before the delay actually expired. This could be argued, but it seems more useful to actually emit that event right before the element is actually removed from the DOM.