Skip to content

Commit 08a9296

Browse files
committed
Release v2.9.0
1 parent 513eaa3 commit 08a9296

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flow.js",
3-
"version": "2.8.0",
3+
"version": "2.9.0",
44
"main": "./dist/flow.js",
55
"ignore": [
66
"**/.*",

dist/flow.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @license MIT
33
*/
44
(function(window, document, undefined) {'use strict';
5-
5+
// ie10+
6+
var ie10plus = window.navigator.msPointerEnabled;
67
/**
78
* Flow.js is a library providing multiple simultaneous, stable and
89
* resumable uploads via the HTML5 File API.
@@ -198,7 +199,7 @@
198199
if (this.events.hasOwnProperty(event)) {
199200
each(this.events[event], function (callback) {
200201
preventDefault = callback.apply(this, args.slice(1)) === false || preventDefault;
201-
});
202+
}, this);
202203
}
203204
if (event != 'catchall') {
204205
args.unshift('catchAll');
@@ -562,9 +563,11 @@
562563
addFiles: function (fileList, event) {
563564
var files = [];
564565
each(fileList, function (file) {
566+
// Uploading empty file IE10/IE11 hangs indefinitely
567+
// see https://connect.microsoft.com/IE/feedback/details/813443/uploading-empty-file-ie10-ie11-hangs-indefinitely
565568
// Directories have size `0` and name `.`
566569
// Ignore already added files
567-
if (!(file.size % 4096 === 0 && (file.name === '.' || file.fileName === '.')) &&
570+
if ((!ie10plus || ie10plus && file.size > 0) && !(file.size % 4096 === 0 && (file.name === '.' || file.fileName === '.')) &&
568571
!this.getFromUniqueIdentifier(this.generateUniqueIdentifier(file))) {
569572
var f = new FlowFile(this, file);
570573
if (this.fire('fileAdded', f, event)) {
@@ -1532,7 +1535,7 @@
15321535
* Library version
15331536
* @type {string}
15341537
*/
1535-
Flow.version = '2.8.0';
1538+
Flow.version = '2.9.0';
15361539

15371540
if ( typeof module === "object" && module && typeof module.exports === "object" ) {
15381541
// Expose Flow as module.exports in loaders that implement the Node

0 commit comments

Comments
 (0)