1018 Commits

Author SHA1 Message Date
Jeremy Ashkenas
699fe32712 Backbone.js 1.0 2013-03-20 20:13:55 +08:00
Jeremy Ashkenas
9414b9a7c3 D-D-D-Documentation Refactor. 2013-03-20 15:11:25 +08:00
Jeremy Ashkenas
1c17c2efee Merge pull request #2393 from braddunbar/route-names
Use empty route name for anonymous routes.
2013-03-19 22:54:17 -07:00
Brad Dunbar
3d431346c7 Use empty route name for anonymous routes. 2013-03-20 01:42:29 -04:00
Jeremy Ashkenas
b0771d9b4e Merge branch 'master' of github.com:documentcloud/backbone 2013-03-20 12:02:08 +08:00
Jeremy Ashkenas
fe251a477d Restoring model.set() with 'silent' 2013-03-20 12:01:53 +08:00
Brad Dunbar
a732722501 Style. 2013-03-19 23:42:44 -04:00
Brad Dunbar
b9ea638690 No need for _.bind, just use the closure. 2013-03-19 23:33:46 -04:00
Jeremy Ashkenas
d6e283ec3e Fixes #2321, fixes #2014 -- decode route arguments. 2013-03-20 10:50:42 +08:00
Jeremy Ashkenas
556938a593 removing extra guard 2013-03-20 10:14:39 +08:00
Jeremy Ashkenas
5b7d5bb23f Cleaning up Model constructor with modelOptions 2013-03-20 08:23:45 +08:00
Jeremy Ashkenas
4ab7d055c0 Merge pull request #2391 from tgriesser/model-options
Attaching url and urlRoot on the model if passed
2013-03-19 17:17:57 -07:00
Jeremy Ashkenas
f495c3615b Fixes #2152 -- support PATCH in IE <= 8 2013-03-20 07:51:51 +08:00
Jeremy Ashkenas
155bd064a9 Revert "Removing HTTP PATCH support from Backbone. Revert this commit as soon as jQuery supports PATCH."
This reverts commit 46bf8c8197.
2013-03-20 07:41:21 +08:00
Tim Griesser
b490e477f7 attaching url and urlRoot on the model if passed 2013-03-19 15:36:00 -04:00
Tim Griesser
8b0973c48e adding validationError as options property 2013-03-19 10:55:35 -04:00
Jeremy Ashkenas
83eb26f971 removing some underscore model methods, adding others 2013-03-19 20:07:53 +08:00
Jeremy Ashkenas
4e3f923f83 Merge pull request #2082 from akre54/underscore-methods-on-model-2
Add underscore methods (map, keys, values) to models
2013-03-19 05:02:45 -07:00
Jeremy Ashkenas
46bf8c8197 Removing HTTP PATCH support from Backbone. Revert this commit as soon as jQuery supports PATCH. 2013-03-19 19:37:51 +08:00
Jeremy Ashkenas
01a9c30f26 fixing style of previous merge 2013-03-19 19:15:41 +08:00
Jeremy Ashkenas
2b42cc069c Merge pull request #2191 from byroot/feature-ignore-undefined-methods-in-views-events
Improve consistency: get rid of "a zealous early error breaking apps in inconvenient ways"
2013-03-19 04:13:33 -07:00
Jeremy Ashkenas
e6e7fe878b Fixes #2216, fixes #2239, allow routes to be defined anonymously. 2013-03-19 18:59:31 +08:00
Jeremy Ashkenas
a920fed91b Fixes #2262 -- always use parsed attributes. 2013-03-19 18:45:05 +08:00
Jeremy Ashkenas
53fe11df5c merge 2013-03-19 18:28:53 +08:00
Jeremy Ashkenas
9e206e1fd5 Fix comment about invalid event. 2013-03-19 18:23:14 +08:00
Jeremy Ashkenas
ad37b3f9c9 Renaming Collection#update to Collection#set for parallelism ... After a fetch, set is now the default, and reset is the opt-in. 2013-03-19 18:05:26 +08:00
Jeremy Ashkenas
b0bfe5a16e Tiny tweak to -- otherwise, it's looking pretty good. 2013-03-19 17:57:07 +08:00
Jeremy Ashkenas
e83d1ee784 Merging in the update unification. 2013-03-19 17:35:18 +08:00
Jeremy Ashkenas
1b212abcac Merge pull request #2375 from davidinjc/routes_function
Allow extending Router.routes by accepting a function
2013-03-18 18:40:01 -07:00
Sam Breed
abb34ad479 removing errant comma following _onModelEvent 2013-03-15 22:46:10 -06:00
Bryan Goldstein
5a281c511d Make Router.routes accept a function
[#2255]
2013-03-15 11:58:06 -04:00
Brad Dunbar
4c56e50b11 Remove lingering comments on silent changes. 2013-03-15 08:56:29 -04:00
Genadi Samokovarov
8bec722281 Move Collection#sortedIndex definition 2013-03-12 17:27:10 +02:00
Tomas Carnecky
c82cca42af Copy url from options in the Collection constructor 2013-03-10 15:44:00 +00:00
Brad Dunbar
33a145b0db Tweak comment a bit more. 2013-03-06 12:35:00 -05:00
Casey Foster
1cb4a1b286 Don't model.set(model.attributes)...pointless 2013-03-05 10:07:29 -06:00
Brad Dunbar
dbc0dddd59 Fix #2335 - Update viewOptions comment. 2013-03-05 09:16:28 -05:00
Tim Griesser
000f4bcd97 Correct minor spelling mistake. 2013-02-28 20:21:24 -05:00
Tim Griesser
97c36b0bce Merge pull request #2113 from braddunbar/silent
Remove silent option from Model#set.
2013-02-28 09:46:53 -08:00
Brad Dunbar
610fae59cf Fix #2312 - Clarify eventsApi logic. 2013-02-26 07:36:55 -05:00
Adam Krebs
87c359c893 remove map, contains, and pairs methods from Model 2013-02-25 10:25:09 -05:00
Casey Foster
21a875b2c5 Fix #2296 get works with 0 as a model id 2013-02-20 09:08:31 -08:00
Max Kostow
75e2e1f244 fix isValid 2013-02-15 15:13:14 -05:00
Casey Foster
3648aa48e7 Revert "Really fix #2269, remove circular reference."
This reverts commit 43544ca59e.
2013-02-15 07:22:42 -08:00
Casey Foster
79f7f2500f Revert "Account for another leak case"
This reverts commit 772a5cd011.
2013-02-15 07:22:31 -08:00
Casey Foster
772a5cd011 Account for another leak case 2013-02-14 18:20:09 -08:00
Casey Foster
43544ca59e Really fix #2269, remove circular reference.
...

...

...

...
2013-02-14 16:16:55 -08:00
Casey Foster
81f6a16c29 Fix #2269 - clone options before modifying 2013-02-14 11:39:19 -08:00
Casey Foster
cf6e86243b Move stuff around, handle null cleanly 2013-02-13 14:29:26 -08:00
Adam Krebs
89f4770c33 Cleanup reset by using add to extend merge and remove args 2013-02-13 11:35:26 -05:00