Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
24
my-app/node_modules/less/test/plugins/visitor/index.js
generated
vendored
Executable file
24
my-app/node_modules/less/test/plugins/visitor/index.js
generated
vendored
Executable file
|
@ -0,0 +1,24 @@
|
|||
(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);
|
Loading…
Add table
Add a link
Reference in a new issue