Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 99CCDE1A6 for ; Mon, 11 Feb 2013 22:53:26 +0000 (UTC) Received: (qmail 13475 invoked by uid 500); 11 Feb 2013 22:53:26 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 13433 invoked by uid 500); 11 Feb 2013 22:53:26 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 13425 invoked by uid 99); 11 Feb 2013 22:53:26 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 22:53:26 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 3A3753CECA; Mon, 11 Feb 2013 22:53:26 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: hermwong@apache.org To: commits@cordova.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [1/3] js commit: Update lib/webos/platform.js Message-Id: <20130211225326.3A3753CECA@tyr.zones.apache.org> Date: Mon, 11 Feb 2013 22:53:26 +0000 (UTC) Update lib/webos/platform.js create global Mojo object if it does not exist (provided by morphis) Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/377be7a5 Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/377be7a5 Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/377be7a5 Branch: refs/heads/master Commit: 377be7a5ec632b4c8349e5426cd30ea0368e4971 Parents: 67f1c6e Author: ghtomcat Authored: Fri Feb 8 11:29:24 2013 +0100 Committer: hermwong Committed: Mon Feb 11 14:53:02 2013 -0800 ---------------------------------------------------------------------- lib/webos/platform.js | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-js/blob/377be7a5/lib/webos/platform.js ---------------------------------------------------------------------- diff --git a/lib/webos/platform.js b/lib/webos/platform.js index 2c33313..0367e38 100644 --- a/lib/webos/platform.js +++ b/lib/webos/platform.js @@ -34,7 +34,8 @@ module.exports = { window.PalmSystem.stageReady(); } - var Mojo = window.Mojo || {}; + // create global Mojo object if it does not exist + Mojo = window.Mojo || {}; // wait for deviceready before listening and firing document events document.addEventListener("deviceready", function () {