You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/07/30 20:58:20 UTC
[13/13] js commit: [win8] Move code from bootstrap-windows8.js into
windows8/platform.js
[win8] Move code from bootstrap-windows8.js into windows8/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/732c9e91
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/732c9e91
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/732c9e91
Branch: refs/heads/master
Commit: 732c9e914eb2d3f01d9f614f41c0af809ce97e46
Parents: 2e988b0
Author: Andrew Grieve <ag...@chromium.org>
Authored: Tue Jul 30 14:55:24 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Tue Jul 30 14:55:24 2013 -0400
----------------------------------------------------------------------
lib/scripts/bootstrap-windows8.js | 24 ------------------------
lib/windows8/platform.js | 15 +++++++++------
2 files changed, 9 insertions(+), 30 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-js/blob/732c9e91/lib/scripts/bootstrap-windows8.js
----------------------------------------------------------------------
diff --git a/lib/scripts/bootstrap-windows8.js b/lib/scripts/bootstrap-windows8.js
deleted file mode 100644
index 5606b36..0000000
--- a/lib/scripts/bootstrap-windows8.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- *
- * 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.
- *
-*/
-
-require('cordova/modulemapper').clobbers('cordova/windows8/commandProxy', 'cordova.commandProxy');
-require('cordova/channel').onNativeReady.fire();
-
http://git-wip-us.apache.org/repos/asf/cordova-js/blob/732c9e91/lib/windows8/platform.js
----------------------------------------------------------------------
diff --git a/lib/windows8/platform.js b/lib/windows8/platform.js
index 11dce28..09bc8ad 100755
--- a/lib/windows8/platform.js
+++ b/lib/windows8/platform.js
@@ -19,13 +19,16 @@
*
*/
-var cordova = require('cordova'),
- exec = require('cordova/exec'),
- channel = cordova.require("cordova/channel");
-
module.exports = {
- id: "windows8",
- initialize:function() {
+ id: 'windows8',
+ bootstrap:function() {
+ var cordova = require('cordova'),
+ exec = require('cordova/exec'),
+ channel = cordova.require('cordova/channel'),
+ modulemapper = require('cordova/modulemapper');
+
+ modulemapper.clobbers('cordova/windows8/commandProxy', 'cordova.commandProxy');
+ channel.onNativeReady.fire();
var onWinJSReady = function () {
var app = WinJS.Application;