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/10/22 17:45:33 UTC

[23/25] js commit: [CB-4761] Add cordova.platformId property (cherry picked from commit fbb4342a2c7dfa5c04f68ea2dabc97726e6a9532)

[CB-4761] Add cordova.platformId property
(cherry picked from commit fbb4342a2c7dfa5c04f68ea2dabc97726e6a9532)


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

Branch: refs/heads/2.9.x
Commit: 6d4c79d4ff8e132e708b70542a7bb5bb91ecbb40
Parents: f87145b
Author: Andrew Grieve <ag...@chromium.org>
Authored: Fri Sep 13 23:10:17 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Tue Oct 22 11:42:00 2013 -0400

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


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/6d4c79d4/lib/cordova.js
----------------------------------------------------------------------
diff --git a/lib/cordova.js b/lib/cordova.js
index 7c717dd..6ffcd3d 100644
--- a/lib/cordova.js
+++ b/lib/cordova.js
@@ -21,6 +21,7 @@
 
 
 var channel = require('cordova/channel');
+var platform = require('cordova/platform');
 
 /**
  * Listen for DOMContentLoaded and notify our channel subscribers.
@@ -114,6 +115,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.
      */