cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [42/50] git commit: Add constuctor params to FileUploadResult related to CB-2421
Date Mon, 10 Feb 2014 23:23:08 GMT
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 <purplecabbage@gmail.com>
Authored: Tue Jan 28 15:02:05 2014 -0800
Committer: Jesse MacFadyen <purplecabbage@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


Mime
View raw message