mirror of
https://github.com/less/less.js.git
synced 2026-01-23 14:18:00 -05:00
jsdoc and add file manager
This commit is contained in:
@@ -11,6 +11,11 @@ PluginManager.prototype.addPlugin = function(plugin, options) {
|
||||
this.installedPlugins.push(plugin);
|
||||
plugin.install(this.less, this, options);
|
||||
};
|
||||
/**
|
||||
* Adds a visitor. The visitor object has options on itself to determine
|
||||
* when it should run.
|
||||
* @param visitor
|
||||
*/
|
||||
PluginManager.prototype.addVisitor = function(visitor) {
|
||||
this.visitors.push(visitor);
|
||||
};
|
||||
@@ -28,6 +33,18 @@ PluginManager.prototype.addPostProcessor = function(postProcessor, priority) {
|
||||
}
|
||||
this.postProcessors.splice(indexToInsertAt, 0, {postProcessor: postProcessor, priority: priority});
|
||||
};
|
||||
/**
|
||||
* Adds a file manager
|
||||
* @param manager
|
||||
*/
|
||||
PluginManager.prototype.addFileManager = function(manager) {
|
||||
// TODO
|
||||
};
|
||||
/**
|
||||
* Gets all post processors
|
||||
* @returns {Array}
|
||||
* @private
|
||||
*/
|
||||
PluginManager.prototype.getPostProcessors = function() {
|
||||
var postProcessors = [];
|
||||
for(var i = 0; i < this.postProcessors.length; i++) {
|
||||
@@ -35,6 +52,11 @@ PluginManager.prototype.getPostProcessors = function() {
|
||||
}
|
||||
return postProcessors;
|
||||
};
|
||||
/**
|
||||
* Get all visitors
|
||||
* @returns {Array}
|
||||
* @private
|
||||
*/
|
||||
PluginManager.prototype.getVisitors = function() {
|
||||
return this.visitors;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user