Skip to content

Commit

Permalink
Fallback to checking drag and drop events on element
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Aug 30, 2011
1 parent 1d7eade commit c90b3b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modernizr.js
Expand Up @@ -457,7 +457,8 @@ window.Modernizr = (function( window, document, undefined ) {
};

tests['draganddrop'] = function() {
return 'draggable' in document.createElement('div');
var div = document.createElement('div');
return ('draggable' in div) || ('ondragstart' in div && 'ondrop' in div);
};

// Mozilla is targeting to land MozWebSocket for FF6
Expand Down

0 comments on commit c90b3b7

Please sign in to comment.