documentationjs / documentationjs/documentation

@lends does not work with member expressions like My.Collection

Open
#687 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
5.8k
Forks
481
PR merge metrics
No merged PRs in 30d

Description

```
/**
* Class representing a Collection of Models
*
* @class My.Collection
* @extends Backbone.Collection
*
*
*/
My.Collection = Backbone.Collection.extend({

/**
* Where to access API.
*
* @type {string} [urlRoot=My.Config.apiUrl] -
*/
urlRoot: My.Config.apiUrl,

/**
* Init function
*
* @type {function}
* @param {Object} options - my options
*/
initialize: function(options) {
Backbone.Collection.prototype.initialize.call(this, options);
},
//.. continues
```

These 3 comment blocks appear completely separate in the docs. I would expect the 'urlRoot' attribute & 'initialize' function to be grouped with My.Collection class doc. They are all in alphabetical order, meaning I have several 'initialize' functions listed together without any context as I'm extending other Backbone base classes.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.