You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
728 B
29 lines
728 B
define(["../buildControl", "../stringify"], function(bc, stringify){ |
|
return function(){ |
|
if(bc.hasReport){ |
|
var p, |
|
features= bc.hasFeatures, |
|
sorted= []; |
|
for(p in features){ |
|
if(1 || !(p in bc.staticHasFeatures)) { |
|
sorted.push([[p], features[p]]); |
|
} |
|
} |
|
sorted.sort(function(lhs, rhs){ return lhs[0]<rhs[0] ? -1 : (lhs[0]>rhs[0] ? 1 : 0); }); |
|
|
|
var sort= function(set){ |
|
var sorted= []; |
|
for(var p in set){ |
|
sorted.push(p); |
|
} |
|
return sorted.sort(); |
|
}; |
|
|
|
var newline = bc.newline; |
|
bc.log("hasReport", sorted.map(function(item){ |
|
return " // " + sort(item[1]).join(", ") + newline + " '" + item[0] + "':1"; |
|
}).join("," + newline + newline)); |
|
} |
|
return 0; |
|
}; |
|
});
|
|
|