jashkenas / jashkenas/backbone

Where is the initialize function for Backbone.Model documented?

Open
#4,206 2 comments 0 reactions 0 assignees View on GitHub
documentation starter
Dominant language
JavaScript
Stars
28.1k
Forks
5.3k
PR merge metrics
No merged PRs in 30d

Description

I'm looking up how to instantiate a Backbone.Model. Under the [docs for constructor / initialize](http://backbonejs.org/#Model-constructor), it says:

> When creating an instance of a model, you can pass in the initial values of the attributes, which will be set on the model. If you define an initialize function, it will be invoked when the model is created.

What it doesn't say is what arguments that initialize function takes, which if I remember correctly includes the `options` object passed in on instantiation.

Where is this documented?

Contributor guide

Open the contributing guide

Research direction

Review the linked Backbone.Model constructor/initialize documentation first. Clarify which arguments initialize receives, including whether the options object passed during instantiation is included; done when the documentation answers how initialize is called.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.