Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removed the "!!" from the "a-download" test, as it's not needed

  • Loading branch information...
commit acf9a8bff1dd5534d98d243a49b870d27b34eb31 1 parent ac7b9f5
@alrra alrra authored paulirish committed
Showing with 3 additions and 5 deletions.
  1. +3 −5 feature-detects/a-download.js
View
8 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'));
Please sign in to comment.
Something went wrong with that request. Please try again.