jashkenas
5de45fc9e1
Backbone 1.4.0
1.4.0
2019-02-19 10:29:40 -08:00
jashkenas
c336c8a056
Allow ESLint to do its thing.
2019-02-19 09:47:24 -08:00
Jeremy Ashkenas
27f7d41de1
Merge pull request #4190 from AndresArturo/4189
...
Mention use of Options on Collection#model handling of Model instantiations
2018-04-09 11:26:18 -07:00
Andrés Arturo
594bf08c7c
Mention Options to be passed down from Collection on Model creation
2018-04-08 06:47:51 +02:00
Jeremy Ashkenas
82bf61e00d
Merge pull request #4146 from rafde/lodash5-compat
...
`_.bind` to `Function.prototype.bind`
2017-12-05 11:21:48 -08: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
Rafael De Leon
678aeee94d
update travis ci to use node 6 since it's in LTS ( #4147 )
2017-08-01 13:25:47 -04:00
Rafael De Leon
2276b8dcf9
_.bind to Function.prototype.bind
2017-06-21 22:48:32 -07: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
Graeme Yeates
e524804592
Implement Model.mixin and Collection.mixin ( #4024 )
...
Combine implementation of collection and model underscore methods
2017-04-18 15:29:55 -07: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
Graeme Yeates
539c9afad9
Merge pull request #4131 from jbboehr/private-listening-public-on
...
Use the public `on` method when listening
2017-04-08 21:19:03 -04:00
tamal
671e4634f7
Add Changelog
2017-04-08 14:00:27 -07:00
John Boehr
e4939e4b5d
Merge branch 'master' into private-listening-public-on
2017-04-04 14:28:17 -07:00
Olan Byrne
bd50e2e4a4
Clarifies that changes cause update event ( #4123 )
...
This fixes #4109 by indicating that any set on a model, which causes a
change event will results in the change event being bubbled up to the
collection.
2017-02-13 16:43:01 -05:00
Jeremy Ashkenas
4a02b5fc3d
Merge pull request #4112 from amZotti/patch-1
...
Update LICENSE
2017-01-03 12:02:22 -05:00
Jeremy Ashkenas
7e4092d798
Merge pull request #4114 from marmeladze/patch-1
...
update (c)opywrite years
2017-01-03 12:01:44 -05:00
marmeladze
3141352b83
update years
2017-01-03 17:10:48 +04:00
Anthony Zotti
58e80f54e1
Update LICENSE
2017-01-01 04:56:53 -08:00
Charles Chan
6ee2547a4c
Issue #4099 - Fix broken links for Jasmine and jQuery templates ( #4110 )
2016-12-30 12:52:32 -05:00
Jeremy Ashkenas
5162e49c37
Merge pull request #4111 from charleswhchan/fix-index.html
...
Fix description for Model
2016-12-28 17:13:14 -05:00
Charles Chan
c1fc9166e5
Fix description for Model
...
- Loads and saves [data] from the server.
2016-12-27 16:05:27 -08:00
ksladkov
7da4ed73e7
#4103 check if obj is Model in Collection.get ( #4104 )
2016-12-01 16:01:59 -05:00
Adam Krebs
df3366d492
Stop testing IE8 in sauce ( #4008 )
2016-11-29 12:55:40 -05:00
Jeremy Ashkenas
c3a829a91a
Merge pull request #4091 from philfreo/patch-3
...
Docs capitalization consistency
2016-10-27 10:34:55 -04:00
Phil Freo
637a24e3df
Docs capitalization consistency
2016-10-26 20:53:31 -04:00
Jeremy Ashkenas
09c8d72716
Merge pull request #4075 from msrose/docs-search
...
Add filtering to documentation
2016-09-16 11:17:47 -04:00
Michael Rose
ea34297329
Add filtering to documentation
2016-09-11 20:08:59 -07:00
Justin Ridgewell
96e94b3b6c
Merge pull request #4061 from leebyron/iterable
...
Implements the JavaScript Iterable protocol.
2016-07-21 17:22:34 -04:00
Lee Byron
a2fc65b979
Implements the JavaScript Iterable protocol.
...
This introduces new methods related to Iterators on Backbone.Collection to mirror those found on Array: `values`, `keys`, `entries`, and `@@iterator`. Each of these methods will return a JavaScript Iterator, which has a `next` method, yielding the models or ids of models contained in the Collection.
The CollectionIterator is careful to use the `at()` and `modelId()` methods on the host collection rather than direct access to the `models` property, which should ensure it is resilient to creative subclassing of Backbone.Collection and future feature addition.
The [`@@iterator`](http://www.ecma-international.org/ecma-262/6.0/#sec-well-known-symbols ) method is defined using `Symbol.iterator` if it exists in the JavaScript runtime (modern browsers/node.js) and falls back to the string `"@@iterator"` which was popularized by older versions of Firefox and has become the standard fallback behavior for other third-party libraries. This ensures that Backbone can still be used across all browsers, even with use of these new methods.
Supporting Iterable allows better integration between Backbone and the most recent additions to the JavaScript language, including `for of` loops and data-collection constructor functions, as well as better integration with other third-party libraries that accept Iterables instead of only Arrays.
Fixes #3954
2016-07-21 13:33:30 -07:00
Graeme Yeates
760ad49d1c
Merge pull request #4055 from akre54/qunit2
...
Update to Qunit2
2016-07-05 12:38:46 -04:00
Adam Krebs
02891a2924
cleanup some automatic test failures, fix lint issues
2016-06-20 16:17:15 -04:00
Adam Krebs
55bab76349
Upgrade Qunit to 2.0, auto-convert tests using apsdehal/qunit-migrate
2016-06-20 16:04:30 -04:00
Adam Krebs
85b9774e90
Revert "Adding .gitattributes to force Unix line feeds" ( #4045 )
2016-06-13 14:22:51 -04:00
Kevin Partington
1bb06dba06
Adding .gitattributes to force Unix line feeds ( #4036 )
2016-06-09 15:28:35 -04:00
Justin Ridgewell
db9654ff5b
Merge pull request #4037 from platinumazure/eslint-upgrade
...
Upgrade ESLint to latest and replace removed rules
2016-05-31 12:57:47 -04:00
Kevin Partington
09dfe9dbfd
Upgrade ESLint to latest and replace removed rules
2016-05-27 20:42:11 -05:00
Graeme Yeates
45c69e2751
Merge pull request #4031 from leods92/patch-1
...
Fix changelog referring to wrong code change
2016-05-17 14:39:17 -04:00