addyosmani / addyosmani/backbone-fundamentals
Page 37 Collections unclear use of method create
Offen
- Vorherrschende Sprache
- Rich Text Format
- Sterne
- 9.2k
- Forks
- 1.4k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
On page 37 the example uses:
// Collection's convenience method used to create
// new model instance within collection itself.
todos.create({title:'Try out code examples', id: 48});
I'm assuming that this adds a new model instance to the collection but, I'm guessing this example is not clear.
If so explaining the use of the create function and its expected input would be quite valuable.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.