incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [14/19] js commit: Update CameraProxy.js
Date Fri, 17 Aug 2012 18:54:50 GMT
Update CameraProxy.js

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

Branch: refs/heads/master
Commit: 14e4d4ee68e809de35e43a4b7fd3cb4a310a1b7b
Parents: c42269a
Author: wangmingfeng <mingfengwang01@gmail.com>
Authored: Thu Aug 16 12:48:51 2012 +0800
Committer: wangmingfeng <mingfengwang01@gmail.com>
Committed: Thu Aug 16 12:48:51 2012 +0800

----------------------------------------------------------------------
 lib/win8metro/plugin/win8metro/CameraProxy.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/14e4d4ee/lib/win8metro/plugin/win8metro/CameraProxy.js
----------------------------------------------------------------------
diff --git a/lib/win8metro/plugin/win8metro/CameraProxy.js b/lib/win8metro/plugin/win8metro/CameraProxy.js
index e3d5b75..18f5a61 100755
--- a/lib/win8metro/plugin/win8metro/CameraProxy.js
+++ b/lib/win8metro/plugin/win8metro/CameraProxy.js
@@ -64,7 +64,7 @@ module.exports = {
 
                             // The resized file ready for upload
                             var _blob = canvas.msToBlob();
-                            var _stream = _blob.msRandomAccessStream();
+                            var _stream = _blob.msDetachStream();
                             Windows.Storage.StorageFolder.getFolderFromPathAsync(packageId.path).done(function
(storageFolder) {
                                 storageFolder.createFileAsync(tempPhotoFileName, Windows.Storage.CreationCollisionOption.generateUniqueName).done(function
(file) {
                                     file.openAsync(Windows.Storage.FileAccessMode.readWrite).done(function
(fileStream) {


Mime
View raw message