Skip to content

Commit

Permalink
Compact draganddrop check
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Aug 21, 2011
1 parent f2d80c7 commit 1d7eade
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,7 @@ window.Modernizr = (function( window, document, undefined ) {
};

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

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

0 comments on commit 1d7eade

Please sign in to comment.