Skip to content

Commit

Permalink
Merge pull request felixrieseberg#14 from jonashagstedt/master
Browse files Browse the repository at this point in the history
Fix warning about missing keys
  • Loading branch information
felixrieseberg committed Jun 17, 2015
2 parents a516938 bdd7925 commit fb65f4e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions dist/dropzone.js
Original file line number Diff line number Diff line change
@@ -1,8 1,8 @@
/*!
* react-dropzone-component 0.4.1 (dev build at Wed, 10 Jun 2015 17:36:07 GMT) -
* react-dropzone-component 0.4.2 -
* MIT Licensed
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o;"undefined"!=typeof window?o=window:"undefined"!=typeof global?o=global:"undefined"!=typeof self&&(o=self),o.ReactDropzone=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '" o "'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o )s(r[o]);return s})({1:[function(require,module,exports){
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ReactDropzone = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '" o "'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o )s(r[o]);return s})({1:[function(require,module,exports){
'use strict';

var React = (typeof window !== "undefined" ? window.React : typeof global !== "undefined" ? global.React : null),
Expand Down Expand Up @@ -81,7 81,7 @@ DropzoneComponent = React.createClass({displayName: "DropzoneComponent",

if (config.showFiletypeIcon && config.allowedFiletypes && (!files || files.length < 1)) {
for (var i = 0; i < this.props.config.allowedFiletypes.length; i = i 1) {
icons.push(React.createElement(IconComponent, {filetype: this.props.config.allowedFiletypes[i]}));
icons.push(React.createElement(IconComponent, {filetype: this.props.config.allowedFiletypes[i], key: "icon-component" i}));
}
}

Expand Down
6 changes: 3 additions & 3 deletions dist/dropzone.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/dropzone.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 76,7 @@ DropzoneComponent = React.createClass({displayName: "DropzoneComponent",

if (config.showFiletypeIcon && config.allowedFiletypes && (!files || files.length < 1)) {
for (var i = 0; i < this.props.config.allowedFiletypes.length; i = i 1) {
icons.push(React.createElement(IconComponent, {filetype: this.props.config.allowedFiletypes[i]}));
icons.push(React.createElement(IconComponent, {filetype: this.props.config.allowedFiletypes[i], key: "icon-component" i}));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/dropzone.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 76,7 @@ DropzoneComponent = React.createClass({

if (config.showFiletypeIcon && config.allowedFiletypes && (!files || files.length < 1)) {
for (var i = 0; i < this.props.config.allowedFiletypes.length; i = i 1) {
icons.push(<IconComponent filetype={this.props.config.allowedFiletypes[i]} />);
icons.push(<IconComponent filetype={this.props.config.allowedFiletypes[i]} key={"icon-component" i} />);
}
}

Expand Down

0 comments on commit fb65f4e

Please sign in to comment.