You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/02/12 20:33:07 UTC

[15/50] js commit: Update lib/webos/platform.js

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/symbolmapping
Commit: 377be7a5ec632b4c8349e5426cd30ea0368e4971
Parents: 67f1c6e
Author: ghtomcat <ml...@yahoo.com>
Authored: Fri Feb 8 11:29:24 2013 +0100
Committer: hermwong <he...@gmail.com>
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 () {