Updated Branches: refs/heads/master 7dd17b005 -> 163e0e74a
fixed linting Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/163e0e74 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/163e0e74 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/163e0e74 Branch: refs/heads/master Commit: 163e0e74aff15f3eb0950551a6e3e32ba83bddc5 Parents: 7dd17b0 Author: Jesse MacFadyen <purplecabb...@gmail.com> Authored: Fri Jul 27 02:34:06 2012 -0700 Committer: Jesse MacFadyen <purplecabb...@gmail.com> Committed: Fri Jul 27 02:34:06 2012 -0700 ---------------------------------------------------------------------- lib/win8metro/platform.js | 30 +-------------- .../plugin/win8metro/AccelerometerProxy.js | 1 + lib/win8metro/plugin/win8metro/CompassProxy.js | 1 + .../plugin/win8metro/NetworkStatusProxy.js | 3 + 4 files changed, 7 insertions(+), 28 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/163e0e74/lib/win8metro/platform.js ---------------------------------------------------------------------- diff --git a/lib/win8metro/platform.js b/lib/win8metro/platform.js index 768e9bb..a10294b 100644 --- a/lib/win8metro/platform.js +++ b/lib/win8metro/platform.js @@ -1,28 +1,11 @@ var cordova = require('cordova'), exec = require('cordova/exec'), channel = cordova.require("cordova/channel"); - + module.exports = { id: "win8metro", initialize:function() { - console.log("win8metro initialize"); - //window.alert = require("cordova/plugin/notification").alert; - - // INject a lsitener for the backbutton, and tell native to override the flag (true/false) when we have 1 or more, or 0, listeners - // var backButtonChannel = cordova.addDocumentEventHandler('backbutton', { - // onSubscribe:function() { - // if (this.numHandlers === 1) { - // exec(null, null, "CoreEvents", "overridebackbutton", [true]); - // } - // }, - // onUnsubscribe:function() { - // if (this.numHandlers === 0) { - // exec(null, null, "CoreEvents", "overridebackbutton", [false]); - // } - // } - // }); - }, objects: { navigator: { @@ -37,17 +20,8 @@ module.exports = { }, console: { path: "cordova/plugin/win8metro/console" - } } } - //, - // device:{ - // path:"cordova/plugin/win8metro/device" - // } - // , - // console:{ - // path: "cordova/plugin/win8metro/console" - // } } -}; \ No newline at end of file +}; http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/163e0e74/lib/win8metro/plugin/win8metro/AccelerometerProxy.js ---------------------------------------------------------------------- diff --git a/lib/win8metro/plugin/win8metro/AccelerometerProxy.js b/lib/win8metro/plugin/win8metro/AccelerometerProxy.js index 017ee91..6b1b14d 100644 --- a/lib/win8metro/plugin/win8metro/AccelerometerProxy.js +++ b/lib/win8metro/plugin/win8metro/AccelerometerProxy.js @@ -1,3 +1,4 @@ +/*global Windows:true */ var cordova = require('cordova'), Acceleration = require('cordova/plugin/Acceleration'); http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/163e0e74/lib/win8metro/plugin/win8metro/CompassProxy.js ---------------------------------------------------------------------- diff --git a/lib/win8metro/plugin/win8metro/CompassProxy.js b/lib/win8metro/plugin/win8metro/CompassProxy.js index c2bd18f..9be8ecd 100644 --- a/lib/win8metro/plugin/win8metro/CompassProxy.js +++ b/lib/win8metro/plugin/win8metro/CompassProxy.js @@ -1,3 +1,4 @@ +/*global Windows:true */ var cordova = require('cordova'), CompassHeading = require('cordova/plugin/CompassHeading'); http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/163e0e74/lib/win8metro/plugin/win8metro/NetworkStatusProxy.js ---------------------------------------------------------------------- diff --git a/lib/win8metro/plugin/win8metro/NetworkStatusProxy.js b/lib/win8metro/plugin/win8metro/NetworkStatusProxy.js index 46a3b94..6916d0a 100644 --- a/lib/win8metro/plugin/win8metro/NetworkStatusProxy.js +++ b/lib/win8metro/plugin/win8metro/NetworkStatusProxy.js @@ -1,3 +1,6 @@ + +/*global Windows:true */ + var cordova = require('cordova');