Skip to content

Commit

Permalink
removed the "!!" from the "a-download" test, as it's not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
alrra authored and paulirish committed Jul 19, 2012
1 parent ac7b9f5 commit acf9a8b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions feature-detects/a-download.js
@@ -1,10 +1,8 @@

// a[download] attribute
// When used on an <a>, this attribute signifies that the resource it
// points to should be downloaded by the browser rather than navigating to it.
// When used on an <a>, this attribute signifies that the resource it
// points to should be downloaded by the browser rather than navigating to it.
// http://developers.whatwg.org/links.html#downloading-resources
// By Addy Osmani

Modernizr.addTest('adownload',
!!('download' in document.createElement('a'))
);
Modernizr.addTest('adownload', 'download' in document.createElement('a'));

0 comments on commit acf9a8b

Please sign in to comment.