[Jsdoc-user] recognize "different" way of coding
Status: Inactive
Brought to you by:
mmathews
From: Thomas P. <mad...@ya...> - 2007-06-26 15:01:15
|
Hello. We are currently working in a project using Javascript for coding and JSDoc for our documentation. We are using a lot of "extends" to build up a hierarchie, but we are not using the "standard" mechanisms to realize this extend but a self written function to check dependencies etc. An example can be seen here: /** * Module base class. All modules defined in the application inherit from this class. * @namespace aria.ui * @class Module * @extends aria.lang.JsObject * @constructor */ aria.ui.Module = function() { /** * store the allowed index per panel * @property _index * @type Array * @private */ this._index = []; } a.extend("aria.ui.Module", "aria.lang.JsObject", { /** * Protected _index setter * @method setIndex * @param {String} index The Index to use for this panel */ setIndex: function(target,i) { if(!('_index' in this))this._index = []; this._index[target] = i; }, /** * Protected _index getter * @method setId * @param {String} index The Index to use for this panel */ getIndex: function(target) { if(!('_index' in this))this._index = []; return this._index[target]; } ); As you see the function a.extend realize all the stuff. My question is now, if there is any possibility to let JSDoc recognize the inner methods just like "setIndex" or "getIndex" as member of the class "aria.ui.Module". We already tried some modifications in the code as well as modifying the parameters passed to jsdoc but couldn't figure out a solution. Thanks for your help Best regards Thomas Pietsch __________________________________ Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: http://de.yahoo.com/set |