diff --git a/rhino_modules/jsdoc/doclet.js b/rhino_modules/jsdoc/doclet.js index 66dd1177..a5f56a12 100644 --- a/rhino_modules/jsdoc/doclet.js +++ b/rhino_modules/jsdoc/doclet.js @@ -229,7 +229,7 @@ function codetypeToKind(type) { var kind = (type || '').toLowerCase(); if (kind !== 'function') { - return 'property'; + return 'member'; } return kind; diff --git a/rhino_modules/jsdoc/schema.js b/rhino_modules/jsdoc/schema.js index be52250f..5cbc85e2 100644 --- a/rhino_modules/jsdoc/schema.js +++ b/rhino_modules/jsdoc/schema.js @@ -100,7 +100,7 @@ exports.jsdocSchema = { "kind": { // what kind of symbol is this? "type": "string", "maxItems": 1, - "enum": ["constructor", "module", "event", "namespace", "method", "property", "enum", "class", "interface", "constant", "mixin", "file", "version"] + "enum": ["constructor", "module", "event", "namespace", "method", "member", "enum", "class", "interface", "constant", "mixin", "file", "version"] }, "refersto": { // the path to another doc: this doc is simply a renamed alias to that "type": "string", diff --git a/rhino_modules/jsdoc/tag/dictionary/definitions.js b/rhino_modules/jsdoc/tag/dictionary/definitions.js index 99aca379..af434849 100644 --- a/rhino_modules/jsdoc/tag/dictionary/definitions.js +++ b/rhino_modules/jsdoc/tag/dictionary/definitions.js @@ -292,8 +292,7 @@ exports.defineTags = function(dictionary) { onTagged: function(doclet, tag) { setDocletMemberof(doclet, tag); } - }) - .synonym('member'); + }); dictionary.defineTag('mixin', { onTagged: function(doclet, tag) { @@ -352,20 +351,22 @@ exports.defineTags = function(dictionary) { dictionary.defineTag('property', { canHaveType: true, onTagged: function(doclet, tag) { - if (doclet.kind) { - if (!doclet.properties) { doclet.properties = []; } - doclet.properties.push(tag.value); - } - else { - setDocletKindToTitle(doclet, tag); - setDocletNameToValue(doclet, tag); - if (tag.value && tag.value.type) { - doclet.type = tag.value.type; - } + if (!doclet.properties) { doclet.properties = []; } + doclet.properties.push(tag.value); + } + }) + .synonym('prop'); + + dictionary.defineTag('member', { + canHaveType: true, + onTagged: function(doclet, tag) { + setDocletKindToTitle(doclet, tag); + setDocletNameToValue(doclet, tag); + if (tag.value && tag.value.type) { + doclet.type = tag.value.type; } } }) - .synonym('prop') .synonym('var'); dictionary.defineTag('protected', { diff --git a/templates/default/publish.js b/templates/default/publish.js index 4649cb04..7e278664 100644 --- a/templates/default/publish.js +++ b/templates/default/publish.js @@ -96,11 +96,11 @@ } if (f.scope && f.scope !== 'instance') { - if (f.kind == 'function' || f.kind == 'property') attribs.push(f.scope); + if (f.kind == 'function' || f.kind == 'member') attribs.push(f.scope); } if (f.readonly === true) { - if (f.kind == 'property') attribs.push('readonly'); + if (f.kind == 'member') attribs.push('readonly'); } f.attribs = ''+htmlsafe(attribs.length? '<'+attribs.join(', ')+'> ' : '')+''; @@ -126,7 +126,7 @@ addAttribs(doclet); } - if (doclet.kind === 'property') { + if (doclet.kind === 'member') { addSignatureType(doclet); addAttribs(doclet) } @@ -156,7 +156,7 @@ data.orderBy(['longname', 'version', 'since']); // kinds of containers - var globals = find( {kind: ['property', 'function'], memberof: {isUndefined: true}} ), + var globals = find( {kind: ['member', 'function'], memberof: {isUndefined: true}} ), modules = find({kind: 'module'}), externals = find({kind: 'external'}), mixins = find({kind: 'mixin'}), @@ -262,7 +262,7 @@ nav = nav + ''; } - var globalNames = find({kind: ['property', 'function'], 'memberof': {'isUndefined': true}}); + var globalNames = find({kind: ['member', 'function'], 'memberof': {'isUndefined': true}}); if (globalNames.length) { nav = nav + '

Global