You have to prefix the name passed to @lends
with the module name. See the @lends
statement in this snipped I adapted from the code in your question:
MyModule.View = Backbone.View.extend(
/** @lends module:MyModule.MyModule.View */
{
/**
* myFunction1
*
* @param {object} hello Hello World!
*/
myFunction1: function(hello) { }
});
With the @lends
above, I'm able to get myFunction1
to show up, properly documented.