Line | |
---|
1 | define(["../buildControl", "../stringify"], function(bc, stringify){ |
---|
2 | return function(){ |
---|
3 | if(bc.hasReport){ |
---|
4 | var p, |
---|
5 | features= bc.hasFeatures, |
---|
6 | sorted= []; |
---|
7 | for(p in features){ |
---|
8 | if(1 || !(p in bc.staticHasFeatures)) { |
---|
9 | sorted.push([[p], features[p]]); |
---|
10 | } |
---|
11 | } |
---|
12 | sorted.sort(function(lhs, rhs){ return lhs[0]<rhs[0] ? -1 : (lhs[0]>rhs[0] ? 1 : 0); }); |
---|
13 | |
---|
14 | var sort= function(set){ |
---|
15 | var sorted= []; |
---|
16 | for(var p in set){ |
---|
17 | sorted.push(p); |
---|
18 | } |
---|
19 | return sorted.sort(); |
---|
20 | }; |
---|
21 | |
---|
22 | var newline = bc.newline; |
---|
23 | bc.log("hasReport", sorted.map(function(item){ |
---|
24 | return " // " + sort(item[1]).join(", ") + newline + " '" + item[0] + "':1"; |
---|
25 | }).join("," + newline + newline)); |
---|
26 | } |
---|
27 | return 0; |
---|
28 | }; |
---|
29 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.