Skip to content

Commit

Permalink
fix: jquery users support
Browse files Browse the repository at this point in the history
  • Loading branch information
AidasK committed Nov 8, 2013
1 parent 4f8ed0f commit 169f3e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/directives/drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ angular.module('ngFlow.drop', ['ngFlow.init'])
}
function isFileDrag(dragEvent) {
var fileDrag = false;
angular.forEach(dragEvent.dataTransfer.types, function(val) {
var dataTransfer = dragEvent.dataTransfer || dragEvent.originalEvent.dataTransfer;
angular.forEach(dataTransfer && dataTransfer.types, function(val) {
if (val === 'Files') {
fileDrag = true;
}
Expand Down

0 comments on commit 169f3e0

Please sign in to comment.