jtsage/jquery-mobile-datebox — pull request #97 by dtao (2011-10-12 18:44:37+00:00)
Title: added check for close button to fix issue #84

When clicking on the Close button in dialog mode, first jQuery Mobile handles the click and navigates back one page, THEN the datebox widget handles the click again and does the same (by calling `dialog('close')`). This change adds a member to the `payload` argument passed to `_dateboxHandler` indicating that the 'close' event was triggered with a click on the Close button; this flag is then checked within the `close` method to detect whether it is necessary to call `dialog('close')` or not.