Adam Krebs
2bd5df99c5
remove $(document).ready(...) from tests
2013-09-16 10:51:32 -04:00
Brad Dunbar
09259964df
QUnit 1.12.0
2013-07-03 11:03:19 -04:00
Casey Foster
4db2676477
Don't validate twice in
2013-03-29 14:16:00 -05:00
Casey Foster
8e7208e0d8
Fix #2446 save should always set with validate: true by default
2013-03-29 13:46:17 -05:00
Genadi Samokovarov
3bfbcd4123
Don't accept urlRoot from Model and url from Collection
2013-03-25 23:07:46 +02:00
Genadi Samokovarov
e91b36c0cb
Don't attach url if passed as an option in Model
2013-03-23 19:34:27 +02:00
Jeremy Ashkenas
fe251a477d
Restoring model.set() with 'silent'
2013-03-20 12:01:53 +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
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
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
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
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
brad dunbar
0a70b3953c
Semicolon.
2013-02-04 11:29:45 -05: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
Brad Dunbar
5f522c74b7
Remove silent option from Model#set.
2013-01-22 12:23:35 -05:00
Casey Foster
975a44a6f1
Consistently turn on parse flag in save, like fetch already does
2013-01-11 08:20:57 -08:00
Adam Krebs
8753649652
Add keys, values, pairs, invert, pick, omit, each, and other
...
underscore methods to models
2013-01-06 18:56:20 -05:00
Casey Foster
6e3e137019
Revert "Add keys, values, pairs, invert, pick, omit, each, and other"
...
This reverts commit faa776a67c .
2013-01-06 15:48:01 -08:00
Adam Krebs
faa776a67c
Add keys, values, pairs, invert, pick, omit, each, and other
...
underscore methods to models
2013-01-06 16:53:17 -05:00
Tim Griesser
4488374104
nested silent changes should not trigger change events
2012-12-28 10:35:12 -05:00
Tim Griesser
e12e1d8d45
fixing validation & internal change flag order
2012-12-27 01:16:08 -05:00
Tim Griesser
047d0d6bf4
using typeof rather than _.isObject for model.save
2012-12-26 13:07:36 -05:00
Tim Griesser
c396adb2dd
save with non-model success
2012-12-26 01:54:49 -05:00
Jeremy Ashkenas
2abe2850e5
Merge pull request #2004 from elasticsales/master
...
Adding test for change event only firing if setting an object with a different value
2012-12-21 12:39:18 -08:00
Brad Dunbar
6d589bad78
Fix #2003 - success callback arguments.
2012-12-21 14:06:45 -05:00
Phil Freo
e2bcc8c6ea
Adding test for change event only firing if setting an object with a different value
2012-12-21 13:54:10 -05:00
Jeremy Ashkenas
1357ecd413
tricky merge with master ...
2012-12-21 12:25:45 -05:00
Tim Griesser
b3c06874ae
Merge pull request #2001 from braddunbar/simple
...
Ensure toJSON receives the correct attributes.
2012-12-21 07:53:33 -08:00
Jeremy Ashkenas
2eab0fe3b8
hasChanged shouldn't be true after the constructor.
2012-12-21 10:51:02 -05:00
Jeremy Ashkenas
3ffcce8cb8
trying new hasChanged() semantics
2012-12-21 10:46:02 -05:00
Jeremy Ashkenas
34f852803a
revisited tests with simple silent
2012-12-21 10:23:16 -05:00
Brad Dunbar
5350dc9dea
Ensure toJSON receives the correct attributes.
2012-12-21 08:53:12 -05:00
Jeremy Ashkenas
c0f3f424bb
remove lingering silents
2012-12-20 15:39:32 -05:00
Jeremy Ashkenas
9c55b4b349
finished with the simple case for models ... hurrah
2012-12-20 15:30:29 -05:00
Jeremy Ashkenas
14bfb400fc
... progress ...
2012-12-20 14:53:33 -05:00
Genadi Samokovarov
ca88fcda5c
Add test for #1989
2012-12-20 15:20:23 +02:00
Jeremy Ashkenas
f29c912dc7
right up to the edge ... nested sets are the next challenge
2012-12-19 18:15:51 -05:00
Jeremy Ashkenas
8178bf1d6b
... progress ...
2012-12-19 18:12:20 -05:00
Jeremy Ashkenas
7fce8d799b
removing a bit of 'silent'
2012-12-19 17:56:33 -05:00
Jeremy Ashkenas
cc8a5c2d9c
... progress ...
2012-12-19 17:51:33 -05:00