Skip to content

Commit

Permalink
Release v2.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AidasK committed Feb 1, 2015
1 parent 513eaa3 commit 08a9296
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flow.js",
"version": "2.8.0",
"version": "2.9.0",
"main": "./dist/flow.js",
"ignore": [
"**/.*",
Expand Down
11 changes: 7 additions & 4 deletions dist/flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
* @license MIT
*/
(function(window, document, undefined) {'use strict';

// ie10+
var ie10plus = window.navigator.msPointerEnabled;
/**
* Flow.js is a library providing multiple simultaneous, stable and
* resumable uploads via the HTML5 File API.
Expand Down Expand Up @@ -198,7 +199,7 @@
if (this.events.hasOwnProperty(event)) {
each(this.events[event], function (callback) {
preventDefault = callback.apply(this, args.slice(1)) === false || preventDefault;
});
}, this);
}
if (event != 'catchall') {
args.unshift('catchAll');
Expand Down Expand Up @@ -562,9 +563,11 @@
addFiles: function (fileList, event) {
var files = [];
each(fileList, function (file) {
// Uploading empty file IE10/IE11 hangs indefinitely
// see https://connect.microsoft.com/IE/feedback/details/813443/uploading-empty-file-ie10-ie11-hangs-indefinitely
// Directories have size `0` and name `.`
// Ignore already added files
if (!(file.size % 4096 === 0 && (file.name === '.' || file.fileName === '.')) &&
if ((!ie10plus || ie10plus && file.size > 0) && !(file.size % 4096 === 0 && (file.name === '.' || file.fileName === '.')) &&
!this.getFromUniqueIdentifier(this.generateUniqueIdentifier(file))) {
var f = new FlowFile(this, file);
if (this.fire('fileAdded', f, event)) {
Expand Down Expand Up @@ -1532,7 +1535,7 @@
* Library version
* @type {string}
*/
Flow.version = '2.8.0';
Flow.version = '2.9.0';

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

0 comments on commit 08a9296

Please sign in to comment.