mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
More work on jsdoc method linking.
This commit is contained in:
parent
8bfc9c3e2a
commit
079692bdc3
1 changed files with 2 additions and 2 deletions
|
@ -127,13 +127,13 @@ Link.prototype._makeSymbolLink = function(alias, parameters) {
|
|||
var target = (this.targetName)? " target=\""+this.targetName+"\"" : "";
|
||||
// if there is no symbol by that name just return the name unaltered
|
||||
if (!linkTo) {
|
||||
return this.text || alias;
|
||||
return this.text || alias + (parameters || '');
|
||||
} else {
|
||||
// it's a symbol in another file
|
||||
if (!linkTo.is("CONSTRUCTOR") && !linkTo.isNamespace) { // it's a method or property
|
||||
linkPath= (Link.filemap) ? Link.filemap[linkTo.memberOf] :
|
||||
escape(linkTo.memberOf) || "_global_";
|
||||
linkPath += publish.conf.ext + "#" + Link.symbolNameToLinkName(linkTo);
|
||||
linkPath += publish.conf.ext + "#" + Link.symbolNameToLinkName(linkTo).toLowerCase();
|
||||
if (parameters) {
|
||||
linkPath += '-' + parameters.replace(/[()]+/g, '').split(', ').join('-').toLowerCase();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue