summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorPeter 'Pita' Martischka <petermartischka@googlemail.com>2011-06-02 13:11:46 +0100
committerPeter 'Pita' Martischka <petermartischka@googlemail.com>2011-06-02 13:11:46 +0100
commit37490524d958f3e0d50dad775b38f6bcdaa6a85e (patch)
treefcf66be524d3b6e630a374eb9025d7f38df7c69e /node
parent890d1a4e0569069ef6a407c668a125e9f2313d88 (diff)
downloadetherpad-lite-37490524d958f3e0d50dad775b38f6bcdaa6a85e.zip
Fixes jsdoc types
Diffstat (limited to 'node')
-rw-r--r--node/AuthorManager.js20
-rw-r--r--node/PadManager.js2
-rw-r--r--node/db.js2
3 files changed, 12 insertions, 12 deletions
diff --git a/node/AuthorManager.js b/node/AuthorManager.js
index fa032e44..5d30b602 100644
--- a/node/AuthorManager.js
+++ b/node/AuthorManager.js
@@ -24,8 +24,8 @@ var async = require("async");
/**
* Returns the Author Id for a token. If the token is unkown,
* it creates a author for the token
- * @param token {String} The token
- * @param callback {Function} callback (err, author)
+ * @param {String} token The token
+ * @param {Function} callback callback (err, author)
* The callback function that is called when the result is here
*/
exports.getAuthor4Token = function (token, callback)
@@ -74,8 +74,8 @@ exports.getAuthor4Token = function (token, callback)
/**
* Returns the color Id of the author
- * @param author {String} The id of the author
- * @param callback {Function} callback(err, colorId)
+ * @param {String} author The id of the author
+ * @param {Function} callback callback(err, colorId)
*/
exports.getAuthorColorId = function (author, callback)
{
@@ -84,8 +84,8 @@ exports.getAuthorColorId = function (author, callback)
/**
* Sets the color Id of the author
- * @param author {String} The id of the author
- * @param callback {Function} (optional)
+ * @param {String} author The id of the author
+ * @param {Function} callback (optional)
*/
exports.setAuthorColorId = function (author, colorId, callback)
{
@@ -94,8 +94,8 @@ exports.setAuthorColorId = function (author, colorId, callback)
/**
* Returns the name of the author
- * @param author {String} The id of the author
- * @param callback {Function} callback(err, name)
+ * @param {String} author The id of the author
+ * @param {Function} callback callback(err, name)
*/
exports.getAuthorName = function (author, callback)
{
@@ -104,8 +104,8 @@ exports.getAuthorName = function (author, callback)
/**
* Sets the name of the author
- * @param author {String} The id of the author
- * @param callback {Function} (optional)
+ * @param {String} author The id of the author
+ * @param {Function} callback (optional)
*/
exports.setAuthorName = function (author, name, callback)
{
diff --git a/node/PadManager.js b/node/PadManager.js
index ae4be322..499c323d 100644
--- a/node/PadManager.js
+++ b/node/PadManager.js
@@ -28,7 +28,7 @@ globalPads = [];
/**
* Returns a Pad Object with the callback
* @param id A String with the id of the pad
- * @param callback {Function}
+ * @param {Function} callback
*/
exports.getPad = function(id, callback)
{
diff --git a/node/db.js b/node/db.js
index 3656b6c6..c586e1c4 100644
--- a/node/db.js
+++ b/node/db.js
@@ -32,7 +32,7 @@ exports.db = null;
/**
* Initalizes the database with the settings provided by the settings module
- * @param callback {Function}
+ * @param {Function} callback
*/
exports.init = function(callback)
{