Sha256: adc728ef3f22bddae2d85b9123ec0c9e7947e6f75b3cceb096f0020804aa8f22

Contents?: true

Size: 668 Bytes

Versions: 5

Compression:

Stored size: 668 Bytes

Contents

var Node = require("./node");

var Combinator = function (value) {
    if (value === ' ') {
        this.value = ' ';
        this.emptyOrWhitespace = true;
    } else {
        this.value = value ? value.trim() : "";
        this.emptyOrWhitespace = this.value === "";
    }
};
Combinator.prototype = new Node();
Combinator.prototype.type = "Combinator";
var _noSpaceCombinators = {
    '': true,
    ' ': true,
    '|': true
};
Combinator.prototype.genCSS = function (context, output) {
    var spaceOrEmpty = (context.compress || _noSpaceCombinators[this.value]) ? '' : ' ';
    output.add(spaceOrEmpty + this.value + spaceOrEmpty);
};
module.exports = Combinator;

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
ilog-0.4.1 node_modules/less/lib/less/tree/combinator.js
ilog-0.4.0 node_modules/less/lib/less/tree/combinator.js
ilog-0.3.3 node_modules/less/lib/less/tree/combinator.js
less-execjs-2.6.0.4 lib/less/js/less/lib/less/tree/combinator.js
less-execjs-2.6.0.3 lib/less/js/less/lib/less/tree/combinator.js