anutron
unread,Apr 8, 2011, 1:54:17 PM4/8/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JSDoc Users
Hi all.
First time caller here. I'm doing some doc work and I've started using
JsDoc and so far I'm super impressed. I have a few questions and
apologies if these have been answered elsewhere. I've done my googling
and I've read through most of the posts here. On with the questions!
If I have an extension to a prototype (like, say, String) I have
something like this:
String.implement(/** @lends String */{
/** some docs */
fooify: function(){ return this + "foo"; }
});
First, is this the proper thing to do? If I have String extensions in
several files, I end up lending it more than once. I run the docs with
-m so that I don't get warnings and this seems to work. Is this
proper?
Second question:
Given that I have functionality to support Foo.FeatureA in
Foo.FeatureA.js and functionality for Foo.FeatureB in Foo.FeatureB.js,
it's annoying to me that I can't organize my docs that way if both
files alter a prototype that they share. Instead, all the methods for,
say, a shared Foo object, end up on the Foo page in the docs output.
This removes the context that I'd prefer to have with my docs; I want
the extension to the prototype to be in with the feature, or at least
to be grouped together on the same page. Is there a way to have all
the Foo stuff in FeatureA grouped? If not, can I have
Foo.FeatureA.FooStuff and Foo.FeatureB.FooStuff, so that the two
aren't intermingled?
Thanks in advance for any advice you might have.