brad dunbar
b6dc6a224e
Merge pull request #1342 from caseywebdev/master
...
Allow Collection to receive falsy `comparator` to override default
2012-05-24 09:26:40 -07:00
Casey Foster
c016a1c58f
Added a few more cases for the test
2012-05-24 09:11:29 -07:00
Casey Foster
4a0acdee50
Simplified falsy comparator test case
2012-05-24 09:02:22 -07:00
Sam Breed
98e01bbc4a
adding test for falsy comparators ( #1342 )
2012-05-23 23:53:13 -06:00
Jeremy Ashkenas
f86674d6a7
Fixes #1343 , adding Collection#slice
2012-05-23 17:13:48 -04:00
Brad Dunbar
04bd18e38e
Jettison setDomLibrary in favor of Backbone.$.
2012-05-15 17:45:58 -04:00
Brad Dunbar
83a24bb2d5
Fix #1310 - off does not skip consecutive events.
2012-05-14 07:53:01 -04:00
Sam Breed
cacd01d530
Fix #1292 - unexpected results when passing undefined to Model.hasChanged()
...
* additional check in hashChanged for when `attr` is present but undefined
* adds tests for expected results when passing undefined
2012-05-07 19:45:03 -06:00
Brad Dunbar
c4297e5e2e
Fix #1282 - "all" callback list is retrieved for each event.
2012-05-04 13:28:17 -04:00
Jeremy Ashkenas
c7a7584fca
Merge pull request #1275 from braddunbar/qunit-1.5.0
...
Update QUnit.
2012-05-03 07:33:12 -07:00
Brad Dunbar
70005fdd04
Update QUnit.
...
* Use `deepEqual` in place of `same`.
* Expect 0 tests where appropriate.
* Update view test to use #qunit-fixture.
* Remove `QUnit.config.reorder = false;`.
2012-05-02 20:54:27 -04:00
Brad Dunbar
46d43ae5bf
null and undefined are invalid ids.
2012-05-02 17:34:59 -04:00
Brad Dunbar
64205fbd1f
Add tests for #1122 .
2012-04-24 11:33:15 -04:00
Jeremy Ashkenas
bf9e4f6335
adding a test for the previous commit -- failed save with wait:true
2012-04-23 17:58:10 -04:00
Jeremy Ashkenas
07a00ba45d
adding tests for merge:true
2012-04-23 17:15:58 -04:00
Brad Dunbar
35bb2c0fdc
Use raises correctly.
2012-04-18 11:03:40 -04:00
Brad Dunbar
5fc8005c83
Fix #1228 - tagName can be provided as a function.
2012-04-17 10:17:37 -04:00
Brad Dunbar
87c9b17aa7
Fix #474 - Backbone.ajax
2012-04-11 08:33:20 -04:00
Jeremy Ashkenas
091b3e5a80
Merge pull request #1181 from braddunbar/isvalid
...
Fix #1179 - isValid returns true in the absence of validate.
2012-04-04 07:08:33 -07:00
Brad Dunbar
af30bcf3ca
off is chainable when there are no events.
2012-04-04 05:52:54 -07:00
Brad Dunbar
137b7fd670
Fix #1179 - isValid returns true in the absence of validate.
2012-04-04 05:28:40 -07:00
Jeremy Ashkenas
a2ed079af8
removing reg exp test.
2012-04-02 17:35:26 -04:00
Jeremy Ashkenas
948d41c290
Merge pull request #1156 from VIISON/master
...
Router test for urls with encoded characters
2012-04-02 14:22:16 -07:00
Nicklas Ansman Giertz
d852c729df
Add a test case for cloning the attribute object
...
The problem is that the attribute object isn't cloned so when an ID is
set through the constructor attributes[id] will get set on all
subsequent objects as well.
2012-04-02 12:37:25 +02:00
Samuel Vogel
59b39c43a3
Add router test for urls with encoded characters
2012-03-29 17:17:29 +02:00
Raúl Naveiras
db4b617697
add ignores comparator when at option is passed
2012-03-26 16:30:26 +02:00
Ben Orenstein
c7034b9735
Let make take other falsy values for content.
2012-03-21 17:21:16 -04:00
Ben Orenstein
69d2c50640
Allow make to take an argument of 0.
2012-03-21 17:07:32 -04:00
Jeremy Ashkenas
f4a1ebc374
fixes #1030 -- save with wait:true with a synchronous Backbone.sync
2012-03-21 11:18:30 -04:00
Jeremy Ashkenas
e9e1abfe61
model.destroy() returns false if the model.isNew()
2012-03-21 10:40:54 -04:00
Jeremy Ashkenas
7b6dbc8dcd
Merge pull request #1021 from ahamid/reset_passes_options
...
small patch to allow passing options through reset to model initializer
2012-03-19 14:00:58 -07:00
Jeremy Ashkenas
de599c169d
Fixes #991 . Add Collection#where for simple filters
2012-03-19 16:34:53 -04:00
Jeremy Ashkenas
5f41b88764
Merge pull request #1110 from braddunbar/off
...
Fix #1105 - Add convenience overloads for `off`.
2012-03-19 09:27:17 -07:00
Jeremy Ashkenas
e2e0a0982b
Merge pull request #1114 from braddunbar/save-wait-validate
...
Fix #1057 - Save with wait validates model.
2012-03-19 08:35:12 -07:00
Brad Dunbar
9ffc84c9fe
Fix #1112 - options.model sets collection.model.
2012-03-18 22:28:08 -04:00
Brad Dunbar
6948b59e61
Fix #1057 - Save with wait validates model.
2012-03-18 08:59:23 -04:00
Brad Dunbar
fb27097835
Fix #1105 - Add convenience overloads for off.
2012-03-17 09:02:23 -04:00
Jeremy Ashkenas
64f37ce00e
fixes #1067 , urlRoot vs collection.url() order
2012-03-12 11:22:44 -04:00
Aidan Feldman
f49969014c
clean up tests to use fresh object instances for each run, and don't set
...
globals within test files
2012-03-12 04:27:22 -04:00
Brad Dunbar
6c392fa69a
Fix #986 - Undelegate events before changing el.
2012-02-27 15:01:05 -05:00
Jeremy Ashkenas
5ef4921c54
merging async test.
2012-02-27 14:37:50 -05:00
Jeremy Ashkenas
f930b5f042
adding additional router test
2012-02-27 14:37:13 -05:00
Jeremy Ashkenas
83d2918bc7
removing a test that is invalid in IE.
2012-02-27 14:32:30 -05:00
Jeremy Ashkenas
54e284bced
Merge branch 'master' of github.com:documentcloud/backbone
2012-02-27 14:30:26 -05:00
Jeremy Ashkenas
07604deac0
merging in hash fixer for FF
2012-02-27 14:30:23 -05:00
Brad Dunbar
f8b37a84b5
Add test for #1048 .
2012-02-27 14:23:49 -05:00
Brad Dunbar
111d5a1f19
Add a test for #1052 .
2012-02-27 14:16:00 -05:00
Brad Dunbar
69b80f5e3a
Fixes #959 - Silent changes fire 'change:attr'.
...
* Silent changes are tracked so `'change:attr'` can be
fired next time `change` is called.
* Pending changes are tracked to prevent infinite loops
and accurately reflect nested changes.
2012-02-17 07:22:43 -05:00
Aaron Hamid
79045c11cb
small patch to allow passing options through reset to model initializer
2012-02-17 04:03:30 -05:00
Jeremy Ashkenas
e5db1c93d0
Merge pull request #1011 from wookiehangover/issue996
...
adding test coverage for route precedence as per issue #996
2012-02-15 09:04:30 -08:00