Example:
/**
* @constructor
* @Returns {AStar}
*/
function AStar() {
};
/**
* @public
*
* Should this be:
* @memberOf {AStar.prototype}
* Or:
* @memberOf {AStar}
*
* @param {Number} startX
* @param {Number} startY
* @param {Number} destinationX
* @param {Number} destinationY
* @returns {Path}
*/
AStar.prototype.getPath = function(startX, startY, destinationX, destinationY) {
//(...)
};
For the function "getPath" added to AStar's prototype as in the code snipped above, should the annotated documentations on the "getPath" function specify:
@memberOf {AStar.prototype}
or
@memberOf {AStar}
?