Skip to content

Commit

Permalink
removed unneeded geolocation objects but had to add Position+Coordina…
Browse files Browse the repository at this point in the history
…tes in order to pass tests, fixed space encoding issues in FileProxy
  • Loading branch information
purplecabbage committed Oct 29, 2012
1 parent d163b1f commit 8a58735
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 120 deletions.
7 changes: 7 additions & 0 deletions lib/windows8/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ require('cordova/plugin/windows8/FileTransferProxy');
require('cordova/plugin/windows8/MediaProxy');
require('cordova/plugin/windows8/NotificationProxy');


module.exports = {
id: "windows8",
initialize:function() {
Expand Down Expand Up @@ -80,6 +81,12 @@ module.exports = {
}
}
},
Position:{
path:'cordova/plugin/Position'
},
Coordinates:{
path:'cordova/plugin/Coordinates'
},
navigator: {
children: {
device: {
Expand Down
7 changes: 1 addition & 6 deletions lib/windows8/plugin/windows8/FileProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,6 @@ module.exports = {
flag = new Flags(false, false);
}

path = String(path).split(" ").join("\ ");

Windows.Storage.StorageFolder.getFolderFromPathAsync(fullPath).then(
function (storageFolder) {
if (flag.create === true && flag.exclusive === true) {
Expand Down Expand Up @@ -374,8 +372,6 @@ module.exports = {
flag = new Flags(false, false);
}

path = String(path).split(" ").join("\ ");

Windows.Storage.StorageFolder.getFolderFromPathAsync(fullPath).then(
function (storageFolder) {
if (flag.create === true && flag.exclusive === true) {
Expand Down Expand Up @@ -800,11 +796,10 @@ module.exports = {
var uri = args[0];

var path = uri;
path = path.split(" ").join("\ ");

// support for file name with parameters
if (/\?/g.test(path)) {
path = String(path).split("\?")[0];
path = String(path).split("?")[0];
}

// support for encodeURI
Expand Down
114 changes: 0 additions & 114 deletions lib/windows8/plugin/windows8/geolocation.js

This file was deleted.

0 comments on commit 8a58735

Please sign in to comment.