-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shortname is not set correctly. #296
Comments
Could you provide your JavaScript comments for docs? IMO, it should be works regardless of JavaScript code styles. |
|
It works correctly when I put the namespace in a separate comment block:
|
Yes I am using 0.4.0, but you don't seem to get my Problem.. I want the part below "Constructor" to only show the short name, i.e. "MapController". This should be possible using the json data, but the json data shows
But it should show:
|
Aha, gotcha. It seems to be a bug, but it has no effect on the default theme. I'll take a look later! |
When using AMD style classes, you normally access constructors without the full namespace.
So I wanted to create a modified theme, in which I wanted to display the short name of the constructor on the class detail page.
I found an attribute "shortname" in the data.json, but it matches name exactly, including the namespace.
I'm guessing this is a bug, since there are code snippets in docparser.js that concat namespace and shortname.
In docparser.js, I found this code:
When commented out, it creates shortname correctly. Not sure if there are any negative side effects.
The text was updated successfully, but these errors were encountered: