Skip to content

Commit

Permalink
5.4.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
enyo committed Mar 6, 2018
1 parent 11873d8 commit caf200c
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dropzone",
"location": "enyo/dropzone",
"version": "5.3.1",
"version": "5.4.0",
"description": "Dropzone is an easy to use drag'n'drop library. It supports image previews and shows nice progress bars.",
"homepage": "http://www.dropzonejs.com",
"main": [
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dropzone",
"repo": "enyo/dropzone",
"version": "5.3.1",
"version": "5.4.0",
"description": "Handles drag and drop of files for you.",
"scripts": [ "index.js", "dist/dropzone.js" ],
"styles": [ "dist/basic.css" ],
Expand Down
11 changes: 9 additions & 2 deletions dist/dropzone-amd-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -1566,6 +1566,7 @@ var Dropzone = function (_Emitter) {
return element.classList.remove("dz-clickable");
});
this.removeEventListeners();
this.disabled = true;

return this.files.map(function (file) {
return _this4.cancelUpload(file);
Expand All @@ -1574,6 +1575,7 @@ var Dropzone = function (_Emitter) {
}, {
key: "enable",
value: function enable() {
delete this.disabled;
this.clickableElements.forEach(function (element) {
return element.classList.add("dz-clickable");
});
Expand Down Expand Up @@ -1630,7 +1632,12 @@ var Dropzone = function (_Emitter) {
}
this.emit("drop", e);

var files = e.dataTransfer.files;
// Convert the FileList to an Array
// This is necessary for IE11
var files = [];
for (var i = 0; i < e.dataTransfer.files.length; i++) {
files[i] = e.dataTransfer.files[i];
}

this.emit("addedfiles", files);

Expand Down Expand Up @@ -2865,7 +2872,7 @@ var Dropzone = function (_Emitter) {

Dropzone.initClass();

Dropzone.version = "5.3.1";
Dropzone.version = "5.4.0";

// This is a map of options for your different dropzones. Add configurations
// to this object for your different dropzone elemens.
Expand Down
11 changes: 9 additions & 2 deletions dist/dropzone.js
Original file line number Diff line number Diff line change
Expand Up @@ -1554,6 +1554,7 @@ var Dropzone = function (_Emitter) {
return element.classList.remove("dz-clickable");
});
this.removeEventListeners();
this.disabled = true;

return this.files.map(function (file) {
return _this4.cancelUpload(file);
Expand All @@ -1562,6 +1563,7 @@ var Dropzone = function (_Emitter) {
}, {
key: "enable",
value: function enable() {
delete this.disabled;
this.clickableElements.forEach(function (element) {
return element.classList.add("dz-clickable");
});
Expand Down Expand Up @@ -1618,7 +1620,12 @@ var Dropzone = function (_Emitter) {
}
this.emit("drop", e);

var files = e.dataTransfer.files;
// Convert the FileList to an Array
// This is necessary for IE11
var files = [];
for (var i = 0; i < e.dataTransfer.files.length; i++) {
files[i] = e.dataTransfer.files[i];
}

this.emit("addedfiles", files);

Expand Down Expand Up @@ -2853,7 +2860,7 @@ var Dropzone = function (_Emitter) {

Dropzone.initClass();

Dropzone.version = "5.3.1";
Dropzone.version = "5.4.0";

// This is a map of options for your different dropzones. Add configurations
// to this object for your different dropzone elemens.
Expand Down
4 changes: 2 additions & 2 deletions dist/min/dropzone-amd-module.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/min/dropzone.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dropzone",
"version": "5.3.1",
"version": "5.4.0",
"description": "Handles drag and drop of files for you.",
"keywords": [
"dragndrop",
Expand Down

0 comments on commit caf200c

Please sign in to comment.