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/09/14 05:11:44 UTC

js commit: [CB-4761] Add cordova.platformId property

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 <ag...@chromium.org>
Authored: Fri Sep 13 23:10:17 2013 -0400
Committer: Andrew Grieve <ag...@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.
      */