Skip to content

Commit

Permalink
Use document.body 2
Browse files Browse the repository at this point in the history
  • Loading branch information
yishn committed Aug 3, 2015
1 parent 5a39254 commit b89581a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion view/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ function prepareSlider() {
function prepareDragDropFiles() {
Element.NativeEvents.dragover = 2
Element.NativeEvents.drop = 2
$$('body').addEvent('dragover', function() {

document.body.addEvent('dragover', function() {
return false
}).addEvent('drop', function(e) {
e.preventDefault()
Expand Down

0 comments on commit b89581a

Please sign in to comment.