MCPcopy Index your code
hub / github.com/dropzone/dropzone / removeAllFiles

Method removeAllFiles

src/dropzone.js:874–885  ·  view source on GitHub ↗
(cancelIfNecessary)

Source from the content-addressed store, hash-verified

872
873 // Removes all files that aren't currently processed from the list
874 removeAllFiles(cancelIfNecessary) {
875 // Create a copy of files since removeFile() changes the @files array.
876 if (cancelIfNecessary == null) {
877 cancelIfNecessary = false;
878 }
879 for (let file of this.files.slice()) {
880 if (file.status !== Dropzone.UPLOADING || cancelIfNecessary) {
881 this.removeFile(file);
882 }
883 }
884 return null;
885 }
886
887 // Resizes an image before it gets sent to the server. This function is the default behavior of
888 // `options.transformFile` if `resizeWidth` or `resizeHeight` are set. The callback is invoked with

Callers 1

destroyMethod · 0.95

Calls 1

removeFileMethod · 0.95

Tested by

no test coverage detected