Permalink
Browse files

fix Safari, items is not an array

  • Loading branch information...
1 parent cdf4547 commit 26d0d97566bcc6726093ab51d9a7309f99e88d66 @tj tj committed Feb 28, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 index.js
View
@@ -97,7 +97,8 @@ Dropload.prototype.ondrop = function(e){
e.stopPropagation();
e.preventDefault();
this.classes.remove('over');
- this.drop(e.dataTransfer.items);
+ var items = e.dataTransfer.items;
+ if (items) this.drop(items);
this.upload(e.dataTransfer.files);
};

0 comments on commit 26d0d97

Please sign in to comment.