[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 <[email protected]>
Authored: Fri Sep 13 23:10:17 2013 -0400
Committer: Andrew Grieve <[email protected]>
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.
      */

Reply via email to