[Pkg-javascript-commits] [less.js] 161/285: jsdoc and add file manager

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:23:50 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag v2.0.0
in repository less.js.

commit d3ca207fe8cc890ef322555d94045cc0218c428e
Author: Luke Page <luke.a.page at gmail.com>
Date:   Thu Oct 9 17:11:47 2014 +0100

    jsdoc and add file manager
---
 lib/less/plugin-manager.js | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/lib/less/plugin-manager.js b/lib/less/plugin-manager.js
index 721faf4..922885c 100644
--- a/lib/less/plugin-manager.js
+++ b/lib/less/plugin-manager.js
@@ -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;
 };

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git



More information about the Pkg-javascript-commits mailing list