2013-04-01 17:23:25 -04:00
|
|
|
(function() {
|
|
|
|
'use strict';
|
2013-03-13 11:58:46 -04:00
|
|
|
|
2013-04-01 17:23:25 -04:00
|
|
|
$(document).on('mobileinit', function() {
|
|
|
|
console.log('mobileinit');
|
|
|
|
$.mobile.ajaxEnabled = false;
|
|
|
|
$.mobile.linkBindingEnabled = false;
|
|
|
|
$.mobile.hashListeningEnabled = false;
|
|
|
|
$.mobile.pushStateEnabled = false;
|
|
|
|
$.mobile.defaultPageTransition = 'none';
|
2013-03-13 11:58:46 -04:00
|
|
|
|
2013-04-01 17:23:25 -04:00
|
|
|
// Remove page from DOM when it's being replaced
|
|
|
|
$(document).on('pagehide', 'div[data-role="page"]', function(event, ui) {
|
|
|
|
$(event.currentTarget).remove();
|
|
|
|
});
|
2013-03-13 11:58:46 -04:00
|
|
|
});
|
2013-04-01 17:23:25 -04:00
|
|
|
|
|
|
|
}());
|