Skip to content

Commit

Permalink
Release v2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AidasK committed Apr 29, 2014
1 parent 2a7b093 commit 0525b25
Show file tree
Hide file tree
Showing 4 changed files with 14 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.4.0",
"version": "2.5.0",
"main": "./dist/flow.js",
"ignore": [
"**/.*",
Expand Down
14 changes: 10 additions & 4 deletions dist/flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,12 @@
* @param {Element|Array.<Element>} domNodes
* @param {boolean} isDirectory Pass in true to allow directories to
* @param {boolean} singleFile prevent multi file upload
* @param {Object} attributes set custom attributes:
* http://www.w3.org/TR/html-markup/input.file.html#input.file-attributes
* eg: accept: 'image/*'
* be selected (Chrome only).
*/
assignBrowse: function (domNodes, isDirectory, singleFile) {
assignBrowse: function (domNodes, isDirectory, singleFile, attributes) {
if (typeof domNodes.length === 'undefined') {
domNodes = [domNodes];
}
Expand Down Expand Up @@ -379,6 +382,9 @@
if (isDirectory) {
input.setAttribute('webkitdirectory', 'webkitdirectory');
}
each(attributes, function (value, key) {
input.setAttribute(key, value);
});
// When new files are added, simply append them to the overall list
var $ = this;
input.addEventListener('change', function (e) {
Expand Down Expand Up @@ -1210,8 +1216,8 @@
if (typeof preprocess === 'function') {
switch (this.preprocessState) {
case 0:
preprocess(this);
this.preprocessState = 1;
preprocess(this);
return;
case 1:
return;
Expand Down Expand Up @@ -1367,7 +1373,7 @@
data.append(this.flowObj.opts.fileParameterName, blob);
}

this.xhr.open(method, target);
this.xhr.open(method, target, true);
this.xhr.withCredentials = this.flowObj.opts.withCredentials;

// Add data from header options
Expand Down Expand Up @@ -1465,7 +1471,7 @@
* Library version
* @type {string}
*/
Flow.version = '2.4.0';
Flow.version = '2.5.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 0525b25

Please sign in to comment.