diff --git a/.jshintrc b/.jshintrc index a0595ff4..d66160e9 100644 --- a/.jshintrc +++ b/.jshintrc @@ -5,7 +5,7 @@ "forin": true, "immed": true, "latedef": false, - "newcap": false, + "newcap": true, "noarg": false, "noempty": false, "nonew": false, diff --git a/jsdoc.js b/jsdoc.js index 66dada0a..871decd6 100644 --- a/jsdoc.js +++ b/jsdoc.js @@ -263,8 +263,8 @@ function main() { } if (/(\bREADME|\.md)$/i.test(env.opts._[i])) { - var readme = require('jsdoc/readme'); - env.opts.readme = new readme(env.opts._[i]).html; + var Readme = require('jsdoc/readme'); + env.opts.readme = new Readme(env.opts._[i]).html; env.opts._.splice(i--, 1); } } diff --git a/rhino_modules/jsdoc/tag/dictionary.js b/rhino_modules/jsdoc/tag/dictionary.js index 18b1492a..1182ca6b 100644 --- a/rhino_modules/jsdoc/tag/dictionary.js +++ b/rhino_modules/jsdoc/tag/dictionary.js @@ -9,7 +9,8 @@ var _synonyms = {}, _namespaces = [], hasOwnProp = Object.prototype.hasOwnProperty; -function _TagDefinition(title, etc) { +/** @private */ +function TagDefinition(title, etc) { etc = etc || {}; this.title = dictionary.normalise(title); @@ -21,7 +22,8 @@ function _TagDefinition(title, etc) { } } -_TagDefinition.prototype.synonym = function(synonymName) { +/** @private */ +TagDefinition.prototype.synonym = function(synonymName) { _synonyms[synonymName.toLowerCase()] = this.title; return this; // chainable } @@ -30,7 +32,7 @@ _TagDefinition.prototype.synonym = function(synonymName) { var dictionary = { /** @function */ defineTag: function(title, opts) { - _definitions[title] = new _TagDefinition(title, opts); + _definitions[title] = new TagDefinition(title, opts); if (opts.isNamespace) { _namespaces.push(title);