cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject mac commit: @trivial - add cordova.platformId
Date Wed, 26 Aug 2015 22:44:26 GMT
Repository: cordova-osx
Updated Branches:
  refs/heads/master 05c4d55ef -> 8110bbd0b


@trivial - add cordova.platformId


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

Branch: refs/heads/master
Commit: 8110bbd0b3cf67fd2f25a198ac39bff859a15865
Parents: 05c4d55
Author: Tobias Bocanegra <tripod@adobe.com>
Authored: Wed Aug 26 00:05:51 2015 -0700
Committer: Tobias Bocanegra <tripod@adobe.com>
Committed: Wed Aug 26 00:05:51 2015 -0700

----------------------------------------------------------------------
 CordovaLib/cordova.js | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-osx/blob/8110bbd0/CordovaLib/cordova.js
----------------------------------------------------------------------
diff --git a/CordovaLib/cordova.js b/CordovaLib/cordova.js
index e5ac595..1b7cdaf 100644
--- a/CordovaLib/cordova.js
+++ b/CordovaLib/cordova.js
@@ -19,8 +19,11 @@
  under the License.
 */
 ;(function() {
-var CORDOVA_JS_BUILD_LABEL = '4.0.0-dev';
-// file: lib/scripts/require.js
+var PLATFORM_VERSION_BUILD_LABEL = '4.0.0-dev';
+// file: src/scripts/require.js
+
+/*jshint -W079 */
+/*jshint -W020 */
 
 var require,
     define;
@@ -100,6 +103,7 @@ define("cordova", function(require, exports, module) {
 
 
 var channel = require('cordova/channel');
+var platform = require('cordova/platform');
 
 /**
  * Listen for DOMContentLoaded and notify our channel subscribers.
@@ -192,6 +196,9 @@ if(typeof window.console.warn === "undefined") {
 var cordova = {
     define:define,
     require:require,
+    version:PLATFORM_VERSION_BUILD_LABEL,
+    platformVersion:PLATFORM_VERSION_BUILD_LABEL,
+    platformId:platform.id,
     /**
      * Methods to add/remove your own addEventListener hijacking on document + window.
      */


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message