incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject [10/10] git commit: Fix for issue #281 of phonegap/phonegap-android: Detect for localStorage if Java has disabled it
Date Fri, 06 Jan 2012 23:52:42 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/05e233bf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/05e233bf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/05e233bf

Branch: refs/heads/master
Commit: 05e233bf1d6a1c5350a73a427485a49c1294a83a
Parents: 36caaf3
Author: macdonst <simon.macdonald@gmail.com>
Authored: Wed Nov 23 03:39:27 2011 +0800
Committer: Joe Bowser <joe.bowser@nitobi.com>
Committed: Fri Nov 25 14:38:06 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/05e233bf/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