You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2012/11/06 01:38:28 UTC
[9/25] js commit: return the uuid we worked so hard to get
return the uuid we worked so hard to get
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/6805a3a8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/6805a3a8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/6805a3a8
Branch: refs/heads/master
Commit: 6805a3a8f13019f725aca9c470165e424d8fe19f
Parents: 95efdcd
Author: purplecabbage <pu...@gmail.com>
Authored: Wed Oct 31 14:58:44 2012 -0700
Committer: purplecabbage <pu...@gmail.com>
Committed: Wed Oct 31 14:58:44 2012 -0700
----------------------------------------------------------------------
lib/windows8/plugin/windows8/DeviceProxy.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/6805a3a8/lib/windows8/plugin/windows8/DeviceProxy.js
----------------------------------------------------------------------
diff --git a/lib/windows8/plugin/windows8/DeviceProxy.js b/lib/windows8/plugin/windows8/DeviceProxy.js
index f6aa79e..98d3ff0 100644
--- a/lib/windows8/plugin/windows8/DeviceProxy.js
+++ b/lib/windows8/plugin/windows8/DeviceProxy.js
@@ -51,14 +51,14 @@ module.exports = {
if (fileContent) {
deviceId = fileContent;
setTimeout(function () {
- win({ platform: "windows8", version: "8", name: name, uuid: "TODO", cordova: "2.2.0" });
+ win({ platform: "windows8", version: "8", name: name, uuid: deviceId, cordova: "2.2.0" });
}, 0)
} else {
deviceId = utils.createUUID();
Windows.Storage.FileIO.writeTextAsync(storageFile, deviceId, Windows.Storage.Streams.UnicodeEncoding.utf8).done(
function () {
setTimeout(function () {
- win({ platform: "windows8", version: "8", name: name, uuid: "TODO", cordova: "2.2.0" });
+ win({ platform: "windows8", version: "8", name: name, uuid: deviceId, cordova: "2.2.0" });
}, 0)
}, function () {
fail(FileError.INVALID_MODIFICATION_ERR);