Skip to content

Commit

Permalink
chore(docs/source/api): remove "prototype" fix-up
Browse files Browse the repository at this point in the history
This should no longer be required, because ".prototype." is now set in one place only so if a error occurs, it should be easy to find and fix
  • Loading branch information
hasezoey committed Jul 8, 2022
1 parent 3445d24 commit 93317db
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions docs/source/api.js
Expand Up @@ -234,11 +234,6 @@ function parse() {
ctx.string = ctx.string + "()";
}

// fixing up "something.prototypemissingdot" to "something.prototype.missingdot"
if (/\.prototype[^.]/.test(ctx.string)) {
ctx.string = `${ctx.constructor}.prototype.${ctx.name}`;
}

// Backwards compat anchors
if (typeof ctx.constructor === 'string') {
ctx.anchorId = `${ctx.constructor.toLowerCase()}_${ctx.constructor}-${ctx.name}`;
Expand Down

0 comments on commit 93317db

Please sign in to comment.