Skip to content

Commit

Permalink
Test for draggable attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Aug 21, 2011
1 parent 664064c commit f2d80c7
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 isEventSupported('dragstart') && isEventSupported('drop');
var div = document.createElement('div');
return 'draggable' in div;
};

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

0 comments on commit f2d80c7

Please sign in to comment.