Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 98AAF18E68 for ; Wed, 26 Aug 2015 22:44:27 +0000 (UTC) Received: (qmail 56242 invoked by uid 500); 26 Aug 2015 22:44:27 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 56214 invoked by uid 500); 26 Aug 2015 22:44:27 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 56205 invoked by uid 99); 26 Aug 2015 22:44:27 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Aug 2015 22:44:27 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id AB292E0427; Wed, 26 Aug 2015 22:44:26 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: shazron@apache.org To: commits@cordova.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: mac commit: @trivial - add cordova.platformId Date: Wed, 26 Aug 2015 22:44:26 +0000 (UTC) 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 Authored: Wed Aug 26 00:05:51 2015 -0700 Committer: Tobias Bocanegra 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