Skip to content

Instantly share code, notes, and snippets.

@iloris
Forked from wkw/jqm-config.mods.js
Created October 10, 2013 17:52
Show Gist options
  • Save iloris/6922630 to your computer and use it in GitHub Desktop.
Save iloris/6922630 to your computer and use it in GitHub Desktop.
// 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();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment