3110 Commits

Author SHA1 Message Date
Jeremy Ashkenas
00f8b6fe79 Backbone.js 1.2.2 1.2.2 2015-08-19 15:03:44 -04:00
Jeremy Ashkenas
2ee9081694 kill old email 2015-08-19 10:51:57 -04:00
Jeremy Ashkenas
09fca1dc7e Merge pull request #3663 from jridgewell/collection-set-style-compat
Collection#set style (Backwards Compatible)
2015-08-18 17:35:20 -04:00
Adam Krebs
fc19ee38e3 fix localStorage link 2015-08-17 00:12:55 -04:00
Adam Krebs
4dcbd2cb48 include -> contains 2015-08-14 11:24:46 -04:00
Adam Krebs
cf73162b9a doc fixes and tightening 2015-08-11 17:34:51 -04:00
Justin Ridgewell
caa0105b0b Merge pull request #3740 from paulfalgout/changelog-1.3
Draft change log for Backbone 1.2.2
2015-08-11 15:58:23 -04:00
Justin Ridgewell
c05c316709 Merge pull request #3751 from jdalton/ie
Add Modernizr style check for 'onhashchange' to avoid issues in IE compat modes.
2015-08-10 18:07:44 -04:00
John-David Dalton
1f29c6713a Add Modernizr style check for 'onhashchange' to avoid issues in IE compat modes. [closes #3730] 2015-08-10 12:55:41 -07:00
paulfalgout
5e5f689641 Draft change log for Backbone 1.3
While this is short update, other than the underdash stuff, both additions are featurey and much less bugfixy so I'd suggest a minor point bump.

Style references:
- Listing multiple methods: https://github.com/jashkenas/backbone/blob/1.2.1/index.html#L4445
- Similar backbone event entry https://github.com/jashkenas/backbone/blob/1.2.1/index.html#L4539

Ponderings:
- Should the model-attribute-style predicate functionality be documented better elsewhere and just referenced here?
- The fairly generic underdash log entry could be removed, though it seems as if that is predominately why this release is shipping now.  If it stays, should we link out to Underdash's github?
2015-08-10 13:16:14 -05:00
Graeme Yeates
46b461cbf9 Merge pull request #3747 from jdalton/t-for-test
Use `some`, `includes`, `map` in tests instead of `any`, `include`, `pluck`.
2015-08-07 22:31:36 -04:00
Justin Ridgewell
a6e2f0fb54 Test null set doesn't clear model.
https://github.com/jashkenas/backbone/pull/3663#discussion_r36124174
2015-08-07 13:20:41 -04:00
John-David Dalton
0bc02af704 Use some, includes, map in tests instead of any, include, pluck. 2015-08-07 01:58:09 -07:00
Graeme Yeates
a2763083c6 Merge pull request #3676 from jridgewell/collection-includes
Add Collection#includes for underscore v1.8
2015-08-06 21:17:43 -04:00
Graeme Yeates
73f08b57bd Merge pull request #3732 from jdalton/sortBy
Use `_.bind` instead of `context` param of `_.sortBy`.
2015-08-06 21:17:01 -04:00
Graeme Yeates
71b8b8e8d0 Merge pull request #3743 from jridgewell/fix-qunit-15
Setup DOM for every view test
2015-08-04 07:42:38 -04:00
Justin Ridgewell
f4d4557592 Setup DOM for every view test
Karma QUnit v0.1.5 now removes and reinserts the `#qunit-fixture`
element before every test.
2015-08-04 01:13:48 -04:00
John-David Dalton
7dc9708cc1 Use _.bind instead of context param of _.sortBy. 2015-08-03 13:52:51 -07:00
Justin Ridgewell
376249e46b Add Collection#includes for underscore v1.8 2015-08-03 16:35:15 -04:00
Jeremy Ashkenas
3e3a055467 Merge pull request #3736 from vanquang9387/adjust-index-sidebar
Update index.html: adjust toc_section font for better display on Windows
2015-07-28 17:34:05 -04:00
Van Quang
635eef5c33 Update index.html: adjust toc_section font
Adjust toc_section's font to "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, sans-serif; for better display on Windows.
2015-07-28 17:58:24 +07:00
Adam Krebs
cb47ea4340 fix grammario 2015-07-23 00:33:59 -04:00
Graeme Yeates
8c168c1d2e Merge pull request #3725 from trizko/docs_3694
update docs according to issue #3694
2015-07-22 19:09:28 -04:00
Tony Rizko
d8d93dfd25 update docs according to issue #3694 2015-07-22 14:52:02 -07:00
Graeme Yeates
abb23436cd Fix #3724; add qunit dependency 2015-07-22 13:22:27 -04:00
Justin Ridgewell
84adba1f3e Merge pull request #3721 from DannyDelott/master
Refactor example code in View#events docs
2015-07-20 16:05:20 -04:00
dannydelott
2e43ec43c3 Refactor example code in View#events docs 2015-07-20 13:00:10 -07:00
Adam Krebs
71a0e0150e style cleanup 2015-07-20 15:45:22 -04:00
Adam Krebs
861c5634dd Merge pull request #3719 from DannyDelott/master
Add docs for View#events
2015-07-20 15:39:29 -04:00
dannydelott
c16e810d35 Add docs for View#events 2015-07-20 10:17:58 -07:00
Justin Ridgewell
96b20d0707 Merge pull request #3710 from elgubenis/patch-2
typos
2015-07-13 10:52:02 -04:00
Linus-A. M. Gubenis
d6dd17c1ee typos 2015-07-13 09:50:11 -05:00
Graeme Yeates
1b1f50a194 Merge pull request #3709 from elgubenis/patch-1
Update collection.js
2015-07-13 10:45:25 -04:00
Linus-A. M. Gubenis
a37d30a3e1 Update collection.js 2015-07-13 09:43:55 -05:00
Adam Krebs
5f871af38a Merge pull request #3701 from craigmichaelmartin/master
improve readability for website
2015-07-06 17:36:28 -04:00
Craig Martin
e5dcf870ca improve readability 2015-07-06 15:31:26 -04:00
Justin Ridgewell
c3c3d6af68 Merge pull request #3690 from sophietk/collection-predicates-fix
Fix test for IE7/IE8 build
2015-06-24 08:22:09 -04:00
sophietk
0d43789682 Fix test for IE7/IE8 build 2015-06-24 10:25:45 +02:00
Justin Ridgewell
f55b4a2245 Merge pull request #3680 from akre54/multi-event-maps
Event maps should support multiple event syntax
2015-06-18 10:21:50 -04:00
Adam Krebs
28ea4b7785 fix addMethod examples 2015-06-12 15:12:15 -04:00
Adam Krebs
adf13ce852 Reorganize addUnderscoreMethods logic 2015-06-12 13:58:38 -04:00
Adam Krebs
67f063b9e5 Merge pull request #3682 from jridgewell/collection-modelProperty
modelProperty doesn't need to check for null
2015-06-12 13:49:47 -04:00
Justin Ridgewell
b60b7da710 modelProperty doesn't need to check for null
Since `#models` is filled with only model instances, there's no need to
check if model isn't `null`.

re: #3667.
2015-06-12 13:28:55 -04:00
Justin Ridgewell
2ddcd47571 Merge pull request #3667 from sophietk/collection-predicates
Collection methods with model-attributes-style predicates
2015-06-12 10:13:21 -04:00
sophietk
007a1b85f4 Collection methods from underscore (reject, filter, some, every, ...) take function, set of model attributes, or attribute name as argument
- Expand the use of inherited underscore methods, to iteratee as function, object or string
- Apply iteratee transformation to groupBy, countBy, sortBy, indexBy
2015-06-11 18:04:30 +02:00
Adam Krebs
6b927eb5e7 Event maps should support multiple event syntax 2015-06-10 17:33:03 -04:00
Justin Ridgewell
a3a0484156 Merge pull request #3679 from akre54/doc-improvements
Update comments throughout the code
2015-06-10 15:32:46 -04:00
Justin Ridgewell
c40396228b Fix incorrect test 2015-06-10 14:26:37 -04:00
Adam Krebs
2be220f28f Update comments throughout the code 2015-06-10 14:26:01 -04:00
Justin Ridgewell
c86de5b72b Use some instead of any 2015-06-10 14:18:36 -04:00