incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject [30/50] git commit: Fix for issue #281 of phonegap/phonegap-android: Detect for localStorage if Java has disabled it
Date Tue, 03 Jan 2012 18:57:10 GMT
Fix for issue #281 of phonegap/phonegap-android: Detect for localStorage if Java has disabled
it


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/63ae9534
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/63ae9534
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/63ae9534

Branch: refs/heads/master
Commit: 63ae95343272d4a38145d35fa4c07251ee180c0e
Parents: 36caaf3
Author: macdonst <simon.macdonald@gmail.com>
Authored: Wed Nov 23 03:39:27 2011 +0800
Committer: macdonst <simon.macdonald@gmail.com>
Committed: Wed Nov 23 03:50:26 2011 +0800

----------------------------------------------------------------------
 framework/assets/js/storage.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/63ae9534/framework/assets/js/storage.js
----------------------------------------------------------------------
diff --git a/framework/assets/js/storage.js b/framework/assets/js/storage.js
index cb741a9..47858c9 100755
--- a/framework/assets/js/storage.js
+++ b/framework/assets/js/storage.js
@@ -431,7 +431,7 @@ PhoneGap.addConstructor(function() {
         };
     }
     
-    if (typeof window.localStorage === "undefined") {
+    if ((typeof window.localStorage == "undefined") || (window.localStorage == null)) {
         navigator.localStorage = window.localStorage = new CupcakeLocalStorage();
         PhoneGap.waitForInitialization("cupcakeStorage");
     }


Mime
View raw message