You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2014/02/11 00:23:08 UTC

[42/50] git commit: Add constuctor params to FileUploadResult related to CB-2421

Add constuctor params to FileUploadResult related to CB-2421


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/5e4a8756
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/5e4a8756
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/5e4a8756

Branch: refs/heads/master
Commit: 5e4a8756f307d2db10cfdea1ea1d5aa70d2ce460
Parents: 2bfa075
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Tue Jan 28 15:02:05 2014 -0800
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Tue Jan 28 15:02:05 2014 -0800

----------------------------------------------------------------------
 www/FileUploadResult.js | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/5e4a8756/www/FileUploadResult.js
----------------------------------------------------------------------
diff --git a/www/FileUploadResult.js b/www/FileUploadResult.js
index 294995f..4f2e33e 100644
--- a/www/FileUploadResult.js
+++ b/www/FileUploadResult.js
@@ -23,10 +23,8 @@
  * FileUploadResult
  * @constructor
  */
-var FileUploadResult = function() {
-    this.bytesSent = 0;
-    this.responseCode = null;
-    this.response = null;
-};
-
-module.exports = FileUploadResult;
+module.exports = function FileUploadResult(size, code, content) {
+	this.bytesSent = size;
+	this.responseCode = code;
+	this.response = content;
+ };
\ No newline at end of file