Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 436509901 for ; Tue, 3 Jan 2012 18:58:59 +0000 (UTC) Received: (qmail 81071 invoked by uid 500); 3 Jan 2012 18:58:59 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 81058 invoked by uid 500); 3 Jan 2012 18:58:59 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 81051 invoked by uid 99); 3 Jan 2012 18:58:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2012 18:58:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.114] (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2012 18:58:58 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 5651A315755; Tue, 3 Jan 2012 18:57:10 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bowserj@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [30/50] git commit: Fix for issue #281 of phonegap/phonegap-android: Detect for localStorage if Java has disabled it Message-Id: <20120103185710.5651A315755@tyr.zones.apache.org> Date: Tue, 3 Jan 2012 18:57:10 +0000 (UTC) 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 Authored: Wed Nov 23 03:39:27 2011 +0800 Committer: macdonst 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"); }