Permalink
Browse files

Release 0.0.3

  • Loading branch information...
1 parent 61511f7 commit ce9adb154b2c02551b501d854b1885d47c0a9524 @tj tj committed Sep 27, 2012
Showing with 11 additions and 2 deletions.
  1. +6 −0 History.md
  2. +1 −0 Readme.md
  3. +1 −1 component.json
  4. +2 −0 index.js
  5. +1 −1 package.json
View
@@ -1,4 +1,10 @@
+0.0.3 / 2012-09-27
+==================
+
+ * add "abort" event
+ * remove progress prop
+
0.0.2 / 2012-09-13
==================
View
@@ -10,6 +10,7 @@
## Events
- `error` an error occurred
+ - `abort` upload was aborted
- `progress` (e) upload in progress (`e.percent`, `e.totalSize` etc)
- `end` upload is complete
View
@@ -2,7 +2,7 @@
"name": "upload",
"repo": "component/upload",
"description": "file upload and progress api",
- "version": "0.0.2",
+ "version": "0.0.3",
"keywords": ["upload", "file"],
"dependencies": {
"component/emitter": "*"
View
@@ -18,6 +18,7 @@ module.exports = Upload;
* Events:
*
* - `error` an error occurred
+ * - `abort` upload was aborted
* - `progress` upload in progress (`e.percent` etc)
* - `end` upload is complete
*
@@ -63,6 +64,7 @@ Upload.prototype.to = function(path){
*/
Upload.prototype.abort = function(){
+ this.emit('abort');
this.req.abort();
};
View
@@ -2,7 +2,7 @@
"name": "upload-component",
"repo": "component/upload",
"description": "file upload and progress api",
- "version": "0.0.2",
+ "version": "0.0.3",
"keywords": ["upload", "file"],
"dependencies": {
"emitter-component": "*"

0 comments on commit ce9adb1

Please sign in to comment.