Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Commit ef87ae4

Browse files
committed
Merge pull request #2351 from martco/master
Minor readability/grammatical updates to add function description
2 parents 8341433 + 8a5406a commit ef87ae4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

js/jquery.fileupload.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,16 @@
144144
// The add callback is invoked as soon as files are added to the fileupload
145145
// widget (via file input selection, drag & drop, paste or add API call).
146146
// If the singleFileUploads option is enabled, this callback will be
147-
// called once for each file in the selection for XHR file uplaods, else
147+
// called once for each file in the selection for XHR file uploads, else
148148
// once for each file selection.
149+
//
149150
// The upload starts when the submit method is invoked on the data parameter.
150151
// The data object contains a files property holding the added files
151-
// and allows to override plugin options as well as define ajax settings.
152+
// and allows you to override plugin options as well as define ajax settings.
153+
//
152154
// Listeners for this callback can also be bound the following way:
153155
// .bind('fileuploadadd', func);
156+
//
154157
// data.submit() returns a Promise object and allows to attach additional
155158
// handlers using jQuery's Deferred callbacks:
156159
// data.submit().done(func).fail(func).always(func);

0 commit comments

Comments
 (0)