You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/09/13 01:40:09 UTC

[6/9] js commit: platform.js

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/01119a9a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/01119a9a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/01119a9a

Branch: refs/heads/master
Commit: 01119a9a2b60d83c9cbda4bfb450f313dcfc73b3
Parents: e2942e1
Author: Piotr Zalewa <pi...@zalewa.info>
Authored: Fri Aug 16 19:08:12 2013 +0200
Committer: Steven Gill <st...@gmail.com>
Committed: Wed Sep 11 15:47:23 2013 -0700

----------------------------------------------------------------------
 lib/firefoxos/platform.js | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/01119a9a/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');
+
+    }
+};