Files
less.js/lib/less/tree/keyword.js
2011-12-24 13:32:13 +01:00

15 lines
364 B
JavaScript

(function (tree) {
tree.Keyword = function (value) { this.value = value };
tree.Keyword.prototype = {
eval: function () { return this },
toCSS: function () { return this.value },
compare: function (other) {
if (other instanceof tree.Keyword) {
return other.value === this.value ? 0 : 1;
}
}
};
})(require('../tree'));