public
Last active

jQueryMobile and Backbone.js

  • Download Gist
jqm-config.mods.js
JavaScript
1 2 3 4 5 6
// 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();
});

awesome. thanks for the tip!

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.