Skip to content
Create a gist now

Instantly share code, notes, and snippets.

jQueryMobile and Backbone.js
// see: http://coenraets.org/blog/2012/03/using-backbone-js-with-jquery-mobile/
// for context.
// this modifies original code (above) to also watch for dialogs being hidden
$('div[data-role="page"],div[data-role="dialog"]').live('pagehide', function (event, ui) {
$(event.currentTarget).remove();
});
@ericbae
ericbae commented Nov 28, 2012

awesome. thanks for the tip!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.