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 <[email protected]> Authored: Fri Aug 16 19:08:12 2013 +0200 Committer: Piotr Zalewa <[email protected]> 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'); + + } +};
