630 Commits

Author SHA1 Message Date
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
fe251a477d Restoring model.set() with 'silent' 2013-03-20 12:01:53 +08:00
Jeremy Ashkenas
2b8f116dcc Adding a test for slashes with splats, github-style 2013-03-20 11:11:18 +08:00
Jeremy Ashkenas
d6e283ec3e Fixes #2321, fixes #2014 -- decode route arguments. 2013-03-20 10:50:42 +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
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
c779865c18 Merge pull request #2104 from akre54/collection-tests
Add reset collection memory and merge tests
2013-03-19 04:54:26 -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
04da5ade56 removing (99% unused) zepto version of tests. 2013-03-19 19:22:46 +08:00
Jeremy Ashkenas
b7096f8f74 typo 2013-03-19 19:16:34 +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
0f1b88bae9 #2321 -- unicode test 2013-03-19 18:10:37 +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
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
5f5c501735 fixing broken comparator test in IE8 (missing return statement) 2013-03-15 23:03:50 -06:00
David Lee
02d6c350b4 Fix test: making vars local 2013-03-15 12:17:32 -04:00
David Lee
29ad43e610 Write a test for making Router.routes accept a function
[#2255]
2013-03-15 11:57:16 -04:00
Brad Dunbar
26efd06a21 Tweak url attachment a bit. 2013-03-11 10:03:58 -04:00
Tomas Carnecky
c82cca42af Copy url from options in the Collection constructor 2013-03-10 15:44:00 +00: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
Tim Griesser
61276ccbe9 Merge pull request #2282 from DreamTheater/patch-1
Fixed to pass with edge version of Underscore
2013-02-26 03:27:26 -08:00
Adam Krebs
87c359c893 remove map, contains, and pairs methods from Model 2013-02-25 10:25:09 -05:00
Dillon Forrest
e3511786d3 Tweak .parse(opt) to be .parse(attrs) for descriptiveness. 2013-02-21 18:30:30 -05:00
Casey Foster
2c24e5cd74 Simplify test 2013-02-20 09:10:49 -08:00
Casey Foster
21a875b2c5 Fix #2296 get works with 0 as a model id 2013-02-20 09:08:31 -08:00
Dmytro Nemoga
8e3c38a19f Update due to recomendations 2013-02-20 10:01:53 +02:00
Dmytro Nemoga
0a085bddc9 Fixed to pass with edge version of Underscore
Due to changes in 0ab5bdccd4 need to fix Backbone.Model test. It would be helpful because some people may use Backbone's unit tests in their Backbone-related projects (plugins for example).
2013-02-17 02:32:10 +02:00
Brad Dunbar
1a4d08b7c6 Update QUnit, phantomjs. 2013-02-15 11:38:05 -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
43544ca59e Really fix #2269, remove circular reference.
...

...

...

...
2013-02-14 16:16:55 -08:00
Casey Foster
93967561d9 Refactor, account for double-parse bug in update 2013-02-10 10:03:34 -08:00
Casey Foster
86451644f0 Fix possible memory leak in stopListening, refactor 2013-02-08 23:17:26 -08:00
Casey Foster
ee350e156e Update parses at model level, simpler get 2013-02-07 18:07:52 -08:00
brad dunbar
e4c046cd4d Merge pull request #2221 from tgriesser/sync-revert2
Making error/success handlers promise compatible
2013-02-05 08:01:34 -08:00
brad dunbar
0a70b3953c Semicolon. 2013-02-04 11:29:45 -05:00
Luke Rodgers
05339d7a13 Bugfix to tests for Backbone.Collection underscore methods.
`_.include` was not being called correctly.
2013-02-02 11:11:10 -05:00
Casey Foster
0631d158ed Fix #2228 - Add findWhere for parity with underscore 2013-01-31 15:45:59 -08:00
Tim Griesser
b1575f72a6 adding tests for error event on all sync methods 2013-01-31 13:34:35 -05:00
Tim Griesser
6e646f1ba7 making error/success handlers promise compatible 2013-01-30 23:41:05 -05:00
Casey Foster
1dfebab17e Tweak chainable events tests 2013-01-27 07:02:02 -08:00
KungD
78b55f7e0f also tested noevents and eventsAPI code branches 2013-01-27 15:30:02 +01:00
KungD
770883fd25 added event functions chaining tests 2013-01-27 15:04:18 +01:00
Jean Boussier
108e114bd1 Improve consistency: get rid of a zealous early error breaking apps in inconvenient ways
Since jQuery.on() and Backbone.Events.on are silently ignoring invalid callbacks,
Backbone.View.delegateEvents should too.

See #2184 for previous discussion about how Backbone is supposed to behave on obvious developer errors
2013-01-25 11:24:57 -05:00