jquery/jquery-mobile — pull request #4143 by gabrielschulhof (2012-04-20 20:52:53+00:00)
Title: [popup] Trigger "closed" only when all animations have completed

This is important if we're going to have mutually exclusive popups, because one popup's open() will run as the previous popup's .one("closed", ... ) callback. That way we get a nice clean, non-overlapping pop out/pop in sequence.

... and even if we don't end up with mutually exclusive popups, it's good to have an indication as to when exactly the popup has removed itself completely from the screen. After all, it's "closed", not "closed, but there's still some crap on the screen" :)