2010-06-16 06:44:59 +08:00
|
|
|
(function (tree) {
|
2010-03-07 06:54:11 +08:00
|
|
|
|
2010-06-19 13:51:26 +08:00
|
|
|
tree.Comment = function (value, silent) {
|
2010-03-07 06:54:11 +08:00
|
|
|
this.value = value;
|
2010-06-16 14:13:59 +08:00
|
|
|
this.silent = !!silent;
|
2010-03-07 06:54:11 +08:00
|
|
|
};
|
|
|
|
tree.Comment.prototype = {
|
2010-06-12 09:45:51 +08:00
|
|
|
toCSS: function (env) {
|
2010-12-02 04:33:17 +08:00
|
|
|
return env.compress ? '' : '<!--' + this.value + '-->';
|
2010-06-16 14:13:59 +08:00
|
|
|
},
|
|
|
|
eval: function () { return this }
|
2010-03-07 06:54:11 +08:00
|
|
|
};
|
2010-06-16 06:44:59 +08:00
|
|
|
|
2011-01-06 03:23:28 +08:00
|
|
|
})(require('mess/tree'));
|