support for --comments option to keep comments containing @license or @preserve

This commit is contained in:
Mihai Bazon
2012-10-02 16:40:42 +03:00
parent cb2e811191
commit 815abcfe18
2 changed files with 37 additions and 3 deletions

View File

@@ -344,7 +344,7 @@ function OutputStream(options) {
});
} else if (typeof c == "function") {
comments = comments.filter(function(comment){
return c(self, comment.value, comment.type);
return c(self, comment);
});
}
comments.forEach(function(c){