Sha256: 70201cd7257fcaa6bd6e7c13b14b4e306be869eee28e56b359c57f143507d25c

Contents?: true

Size: 485 Bytes

Versions: 12

Compression:

Stored size: 485 Bytes

Contents

(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;
        } else {
            return -1;
        }
    }
};

tree.True = new(tree.Keyword)('true');
tree.False = new(tree.Keyword)('false');

})(require('../tree'));

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
less-2.3.3 lib/less/js/lib/less/tree/keyword.js
less-2.3.2 lib/less/js/lib/less/tree/keyword.js
less-2.3.1 lib/less/js/lib/less/tree/keyword.js
less-2.3.0 lib/less/js/lib/less/tree/keyword.js
less-2.2.2 lib/less/js/lib/less/tree/keyword.js
less-2.2.1 lib/less/js/lib/less/tree/keyword.js
less-2.2.0 lib/less/js/lib/less/tree/keyword.js
less-2.1.0 lib/less/js/lib/less/tree/keyword.js
less-2.0.12 lib/less/js/lib/less/tree/keyword.js
less-2.0.11 lib/less/js/lib/less/tree/keyword.js
less-2.0.10 lib/less/js/lib/less/tree/keyword.js
less-2.0.9 lib/less/js/lib/less/tree/keyword.js