Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

1.0rc1 doesn't work with domcache = false

  • Loading branch information...
commit c1a00c526376b5040f7acf3e3c50d8907e154ea2 1 parent 5c6e89a
@dgeb authored
Showing with 7 additions and 7 deletions.
  1. +3 −3 README.md
  2. +4 −4 app.js
View
6 README.md
@@ -5,11 +5,11 @@ https://github.com/jquery/jquery-mobile/issues/2520
Please see the branches of this project to see the different behaviour.
-## jquery-mobile 1.0rc1 - with DOM caching
+## jquery-mobile 1.0rc1 - without DOM caching
-In this branch, pages are cached and are removed from the cache as soon as another one is shown. This strategy, which worked in 1.0b1, doesn't work in 1.0rc1. A blank page will be shown when navigating back to a page that's already been shown.
+In this branch, pages are not cached and therefore shouldn't need to be removed. However, the initial page that's loaded will never be refreshed.
-For example, load Page A, then Page B, then Page A again (it won't be loaded).
+For example, load Page A, then Page B, and then return to Page A. You'll notice that the page loaded time doesn't change, nor does the navbar highlight.
## MIT LICENSE
View
8 app.js
@@ -1,10 +1,10 @@
$(document).bind("mobileinit", function() {
- $.mobile.page.prototype.options.domCache = true;
+ $.mobile.page.prototype.options.domCache = false;
});
-$(document).bind('pageshow',function(event, ui) {
- if (ui.prevPage) ui.prevPage.remove();
-});
+//$(document).bind('pageshow',function(event, ui) {
+// if (ui.prevPage) ui.prevPage.remove();
+//});
$(document).bind('pagecreate',function(event, ui) {
var now = new Date();
Please sign in to comment.
Something went wrong with that request. Please try again.