Revert "Added a dialog.ready method to add a handler after DOM has been updated"

This reverts commit 360d41cfefe87a7a5d2666f256bd45bc4acdfcef.