Skip to content

Commit

Permalink
Right now the docs have to go up top because another crappy regex wan…
Browse files Browse the repository at this point in the history
…ts the files to end with `});`
  • Loading branch information
SlexAxton committed Feb 24, 2013
1 parent 4083395 commit b08508d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions feature-detects/a/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@
}]
}
!*/
/* DOC
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.
*/
define(['Modernizr', 'createElement'], function( Modernizr, createElement ) {
// a[download] attribute
//

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

/* DOC
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.
*/
4 changes: 2 additions & 2 deletions generate-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ file.walkSync(viewRoot, function (start, dirs, files) {
if (docmatches && docmatches[1]) {
docs = marked(docmatches[1].trim());
}
metadata.docs = docs;
metadata.doc = docs;

var deps = [];
if (depMatches && depMatches[1]) {
Expand Down Expand Up @@ -118,4 +118,4 @@ file.walkSync(viewRoot, function (start, dirs, files) {
});
});

console.log(JSON.stringify(tests), null, " ");
console.log(JSON.stringify(tests, null, " "));

0 comments on commit b08508d

Please sign in to comment.