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 E955710579 for ; Fri, 23 Aug 2013 22:14:21 +0000 (UTC) Received: (qmail 30793 invoked by uid 500); 23 Aug 2013 22:14:21 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 30767 invoked by uid 500); 23 Aug 2013 22:14:21 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 30760 invoked by uid 99); 23 Aug 2013 22:14:21 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Aug 2013 22:14:21 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 980698C433D; Fri, 23 Aug 2013 22:14:21 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: steven@apache.org To: commits@cordova.apache.org Date: Fri, 23 Aug 2013 22:14:21 -0000 Message-Id: <39d72caeadda419f9a79322fdec8abfd@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/3] js commit: platform.js Updated Branches: refs/heads/ffos [created] 3be32a335 platform.js Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/db0e689b Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/db0e689b Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/db0e689b Branch: refs/heads/ffos Commit: db0e689bc41db26b910168055c62220869c279ef Parents: 7d5f6f6 Author: Piotr Zalewa Authored: Fri Aug 16 19:08:12 2013 +0200 Committer: Piotr Zalewa Committed: Fri Aug 16 19:08:12 2013 +0200 ---------------------------------------------------------------------- lib/firefoxos/platform.js | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-js/blob/db0e689b/lib/firefoxos/platform.js ---------------------------------------------------------------------- diff --git a/lib/firefoxos/platform.js b/lib/firefoxos/platform.js new file mode 100644 index 0000000..a9829c6 --- /dev/null +++ b/lib/firefoxos/platform.js @@ -0,0 +1,37 @@ +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * +*/ + +module.exports = { + id: 'firefoxos', + bootstrap: function() { + var channel = require('cordova/channel'), + cordova = require('cordova'), + exec = require('cordova/exec'), + modulemapper = require('cordova/modulemapper'); + + // Tell the JS that the native side is ready. + channel.onNativeReady.fire(); + + // TODO: Extract this as a proper plugin. + // modulemapper.clobbers('cordova/plugin/firefoxos/app', 'navigator.app'); + + } +};