From 37490524d958f3e0d50dad775b38f6bcdaa6a85e Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Thu, 2 Jun 2011 13:11:46 +0100 Subject: [PATCH] Fixes jsdoc types --- node/AuthorManager.js | 20 ++++++++++---------- node/PadManager.js | 2 +- node/db.js | 2 +- 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) {