We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bac478 commit f1df834Copy full SHA for f1df834
jstorage.js
@@ -27,7 +27,7 @@
27
(function(){
28
var
29
/* jStorage version */
30
- JSTORAGE_VERSION = "0.2.3",
+ JSTORAGE_VERSION = "0.2.4",
31
32
/* detect a dollar object or create one if not found */
33
$ = window.jQuery || window.$ || (window.$ = {}),
@@ -242,6 +242,15 @@
242
243
// start listening for changes
244
_setupObserver();
245
+
246
+ // handle cached navigation
247
+ if("addEventListener" in window){
248
+ window.addEventListener("pageshow", function(event){
249
+ if(event.persisted){
250
+ _storageObserver();
251
+ }
252
+ }, false);
253
254
}
255
256
function _reloadData(){
0 commit comments