Skip to content

Commit e1e7a1f

Browse files
committed
Expose the jqXHR.abort() method on the data argument.
1 parent b1b0b04 commit e1e7a1f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

js/jquery.fileupload.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload Plugin 5.22.1
2+
* jQuery File Upload Plugin 5.23
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2010, Sebastian Tschan
@@ -801,6 +801,11 @@
801801
that._onSend(e, this);
802802
return this.jqXHR;
803803
};
804+
newData.abort = function () {
805+
if (this.jqXHR) {
806+
return this.jqXHR.abort();
807+
}
808+
};
804809
result = that._trigger('add', e, newData);
805810
return result;
806811
});

0 commit comments

Comments
 (0)