Open GoogleCodeExporter opened 9 years ago
Okay, so a bit of a snag but one easily fixed. If this fix is applied in
conjunction with Issue #331 , there's cases where things fixed by Issue #331 do
not work anymore.
Here's the full bit of code for Parser.js that satisfies both tickets:
if (JSDOC.Parser.rename) {
var replacement, match;
for (var n in JSDOC.Parser.rename) {
replacement = JSDOC.Parser.rename[n].replace(/\.prototype(?:\.|$)/g, "#");
match = symbol.alias.match(/^[\w]+/);
if (match && match[0] === n) {
if (/#$/.test(replacement)) {
n += ".";
}
if (symbol.name == symbol.alias) {
symbol.name = symbol.name.replace(n, replacement);
}
symbol.alias = symbol.alias.replace(n, replacement);
}
}
}
Original comment by mcbain....@gmail.com
on 25 Jan 2012 at 2:30
Original issue reported on code.google.com by
mcbain....@gmail.com
on 25 Jan 2012 at 1:01