Skip to content

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

Open
@sanxac

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.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions