Sha256: 626766458852e8e003bfe4bb0adebaacf836b39c22efb7c193e16ee09d3df7c7

Contents?: true

Size: 703 Bytes

Versions: 5

Compression:

Stored size: 703 Bytes

Contents

(function(exports) {
    var RemoveProperty = function(less) {
        this._visitor = new less.visitors.Visitor(this);
    };

    RemoveProperty.prototype = {
        isReplacing: true,
        run: function (root) {
            return this._visitor.visit(root);
        },
        visitRule: function (ruleNode, visitArgs) {
            if (ruleNode.name != '-some-aribitrary-property') {
                return ruleNode;
            } else {
                return [];
            }
        }
    };

    exports.install = function(less, pluginManager) {
        pluginManager.addVisitor( new RemoveProperty(less));
    };

})(typeof exports === 'undefined' ? this['VisitorPlugin'] = {} : exports);

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
ilog-0.4.1 node_modules/less/test/plugins/visitor/index.js
ilog-0.4.0 node_modules/less/test/plugins/visitor/index.js
ilog-0.3.3 node_modules/less/test/plugins/visitor/index.js
less-execjs-2.6.0.4 lib/less/js/less/test/plugins/visitor/index.js
less-execjs-2.6.0.3 lib/less/js/less/test/plugins/visitor/index.js