cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject js commit: [CB-4761] Add cordova.platformId property
Date Sat, 14 Sep 2013 03:11:44 GMT
Updated Branches:
  refs/heads/master ed1894d4c -> fbb4342a2


[CB-4761] Add cordova.platformId property


Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/fbb4342a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/fbb4342a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/fbb4342a

Branch: refs/heads/master
Commit: fbb4342a2c7dfa5c04f68ea2dabc97726e6a9532
Parents: ed1894d
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Fri Sep 13 23:10:17 2013 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Fri Sep 13 23:11:25 2013 -0400

----------------------------------------------------------------------
 lib/cordova.js | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/fbb4342a/lib/cordova.js
----------------------------------------------------------------------
diff --git a/lib/cordova.js b/lib/cordova.js
index d2c2294..d1d64d3 100644
--- a/lib/cordova.js
+++ b/lib/cordova.js
@@ -21,6 +21,7 @@
 
 
 var channel = require('cordova/channel');
+var platform = require('cordova/platform');
 
 /**
  * Intercept calls to addEventListener + removeEventListener and handle deviceready,
@@ -93,6 +94,7 @@ var cordova = {
     define:define,
     require:require,
     version:CORDOVA_JS_BUILD_LABEL,
+    platformId:platform.id,
     /**
      * Methods to add/remove your own addEventListener hijacking on document + window.
      */


Mime
View raw message