cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [15/50] js commit: Update lib/webos/platform.js
Date Tue, 12 Feb 2013 19:33:07 GMT
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 <mleut@yahoo.com>
Authored: Fri Feb 8 11:29:24 2013 +0100
Committer: hermwong <herm.wong@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 () {


Mime
View raw message