817 Commits

Author SHA1 Message Date
Julian Gonggrijp
50eb8a2c2a Bump the 1.6.1 release date one day forward 2025-03-31 02:14:21 +02:00
Julian Gonggrijp
8a58ab480a Add change log entry for 1.6.1 2025-03-31 01:33:08 +02:00
Julian Gonggrijp
a25a10f6b3 Bump the version to 1.6.1 2025-03-31 01:25:03 +02:00
Julian Gonggrijp
bfc3c18a16 Set the date of the 1.6.0 release (oops) 2024-02-05 22:36:13 +01:00
Julian Gonggrijp
516266d44d Add change log entry for version 1.6.0 2024-01-24 00:29:21 +01:00
Julian Gonggrijp
4c97452f74 Bump the version to 1.6.0 2024-01-24 00:04:08 +01:00
Julian Gonggrijp
07cc274087 Document debugInfo 2024-01-23 19:48:43 +01:00
Julian Gonggrijp
24c985530e Merge pull request #4281 from CentreForDigitalHumanities/history-notfound-event
History notfound event
2023-08-10 22:05:17 +02:00
Julian Gonggrijp
5df475d7f3 Merge pull request #4279 from jgonggrijp/document-defaults-idAttribute
Add warning to documentation about setting the model id in the defaults
2023-08-10 12:48:15 +02:00
Julian Gonggrijp
97afbe8097 Make the idAttribute defaults warning less harsh
Per review comment by @paulfalgout, with gratitude.
2023-08-10 00:28:07 +02:00
Julian Gonggrijp
f434aa9420 Document the notfound event 2023-08-09 00:16:46 +02:00
Julian Gonggrijp
e1ee2e8a1d Add a change log entry for version 1.5.0 2023-07-28 17:58:37 +02:00
Julian Gonggrijp
d82047abee Bump the version to 1.5.0 2023-07-28 17:51:04 +02:00
Aleksey Avdeev
1460a3ab7a Fixes #4097, add parse option to docs section for Backbone.Collection 2023-07-27 23:22:46 +02:00
Julian Gonggrijp
a10dab16e6 Warn about setting the model id in the defaults (fix #4205) 2023-07-27 22:58:02 +02:00
Julian Gonggrijp
fabe82945f Merge pull request #4270 from jgonggrijp/document-cidPrefix-conflict
Document Model.cidPrefix
2023-07-24 00:50:42 +02:00
Julian Gonggrijp
cdda2ca0d8 Merge pull request #4269 from jgonggrijp/document-add-push-unshift
Clarify relationships between set, add push and unshift
2023-07-24 00:47:41 +02:00
Kyle Dickerson
425b931c36 #3391 - Add History trailingSlash option always use trailing slash on root. 2023-07-21 13:28:52 -07:00
Julian Gonggrijp
b48ad1a546 Add Model.cidPrefix section to the documentation TOC (#4226) 2023-07-21 01:00:25 +02:00
Julian Gonggrijp
f6ada205c9 Document Model.cidPrefix (#4226) 2023-07-21 00:55:16 +02:00
Julian Gonggrijp
a353174288 Clarify relationships between set, add push and unshift (#3496) 2023-07-20 21:30:59 +02:00
Julian Gonggrijp
dac55793f6 Add a note about changed filenames to the change log 2022-02-26 01:02:08 +01:00
Julian Gonggrijp
39c46a7dd6 Adapt to new location of annotated examples (#4252 #4246)
The updated docco puts these annotated sources in a different place.
Rather than forcing them back in the old place, it seems easiest to
just go with the flow.
2022-02-26 01:02:08 +01:00
Julian Gonggrijp
ed1e8d9a50 Add a change log entry for version 1.4.1 2022-02-26 01:02:04 +01:00
Julian Gonggrijp
bae4a4cab5 Give every change log entry an id for linking purposes 2022-02-26 00:33:03 +01:00
Julian Gonggrijp
b451cde861 Move all past documentation links from rawgit.com to statically.io 2022-02-26 00:33:03 +01:00
Julian Gonggrijp
b667a2d36d Update documentation to reflect #3966 2022-02-26 00:33:02 +01:00
Julian Gonggrijp
37af733fb9 Bump the version to 1.4.1 2022-02-25 22:12:58 +01:00
Alexey
84306a51e3 Remove unused selector 2022-01-18 12:35:38 +03:00
Paul Falgout
7712b8ec6c Add model changeId event
Fixes #3882
Fixes #4159

Backbone does a bit of extra work to determine when to update `_byId` on every model change event because `change:id` will not work if `idAttribute` has changed.  This causes issues as the `change` event happens after every `change:` event which means during a change the `_byId` hasn't updated.  Rather than adding complexity to collection the solution is to have the model notify with the id changes.

If adding a public event isn't desired, for an internal solution the model is aware of it's collection and could modify model.collection._byId directly within the set.

Either of these solutions seem preferrable to handling `change:[idAttribute]`

Replaces the need for:
https://github.com/jashkenas/backbone/pull/4227/files#diff-c773bb9be277f0f3f2baa308b6e0f3a486790fe99fea81ddd0ba409846250571R1205
2022-01-12 23:26:10 +09:00
Kurt Maine
22f157afc3 Added missing parenthesis in the Collection preinitialize code example
The event listener was missing a closing parenthesis in the preinitialize code sample for Collections.
2020-04-01 21:48:34 -05:00
jashkenas
75e6d0ce63 Missing a few version 1.4.0s 2019-02-19 10:35:53 -08:00
jashkenas
5de45fc9e1 Backbone 1.4.0 2019-02-19 10:29:40 -08:00
Andrés Arturo
594bf08c7c Mention Options to be passed down from Collection on Model creation 2018-04-08 06:47:51 +02:00
jashkenas
06fd17a39d Fixes #4149, xhr passed to error event, not response 2017-12-05 11:15:46 -08:00
Jeremy Ashkenas
6e707b3e3f Merge pull request #4163 from AndresArturo/model-isvalid-docs
Clarify documentation of Model#isValid and Model#validate
2017-12-05 11:08:39 -08:00
schweickism
e6e71f447c Clarify misleading line in docs: comparator only executes on add or sort (#4150) 2017-12-04 21:34:52 +01:00
Andrés Arturo
47955c05b8 Include a description of the events triggered in Model#isValid in the docs 2017-09-30 19:03:46 +02:00
Graeme Yeates
0eca92f441 Add documentation for Collection#mixin 2017-05-16 16:56:32 -04:00
Graeme Yeates
81f5d1a809 Merge #4134 into Changelog 1.4
* pr/4134:
  Fix minor changes
  Change funcName: function() -> funcName(), ES6 -> ES2015
  Fix typos, change example
  Better examples for preinitialize of Model and Collection
  Fix grammar
  Address comments.
  Fix syntax.
  Update change-log, Add preinitialize method example section for Model/Collection/Router/View
  Add Changelog
2017-05-16 16:33:02 -04:00
sajib
0fb9fda15d Fix minor changes 2017-05-02 11:07:38 +06:00
Jordan Eldredge
09cb8871d8 Clarifying improvements to router documentation (#4137)
* Improve documentation of what router actions are passed

* Clarify that actions are functions (as opposed to events)
2017-05-01 17:10:37 -04:00
sajib
fdd6f8ef4d Change funcName: function() -> funcName(), ES6 -> ES2015 2017-04-26 21:30:10 +06:00
sajib
3c282b5289 Fix typos, change example 2017-04-22 15:23:38 +06:00
sajib
3c52367cf2 Better examples for preinitialize of Model and Collection 2017-04-21 13:05:54 +06:00
tamal
f72d1cabd8 Fix grammar 2017-04-18 14:59:00 -07:00
tamal
cbe47479b9 Address comments. 2017-04-17 12:44:34 -07:00
tamal
b05b5dc1a0 Fix syntax. 2017-04-17 11:23:28 -07:00
sajib
b3f520c8dd Update change-log, Add preinitialize method example section for Model/Collection/Router/View 2017-04-16 22:45:47 +06:00
tamal
671e4634f7 Add Changelog 2017-04-08 14:00:27 -07:00