Casey Foster
beffc15a0b
Add Collection#update to better use collection events
2012-12-01 12:26:11 -08:00
Brad Dunbar
f668e842aa
Force noglobals.
2012-11-29 14:17:28 -05:00
Tim Griesser
f2c6412f4c
noglobals check mandatory for browser qunit and node runner
2012-11-29 13:33:49 -05:00
Jeremy Ashkenas
29dc8fc2bc
initial merge of tgriesser's change cleanup
2012-11-28 17:04:27 -05:00
Jeremy Ashkenas
942c19926d
Merge pull request #1717 from davidgtonge/master
...
Stop Backbone throwing an error when an invalid model is added
2012-11-28 12:07:59 -08:00
Jeremy Ashkenas
a0aabb405b
Revert "Fixes #1843 -- reworks parsing behavior. It now always applies if you define it, and no longer passes xhr. (parsing should be a pure function of the data)"
...
This reverts commit fbbb2e675e .
2012-11-28 14:39:01 -05:00
Jeremy Ashkenas
b17a37b4f2
Merge pull request #1835 from braddunbar/travis
...
Fix gh-1201 - Simple TravisCI support.
2012-11-28 11:31:22 -08:00
Jeremy Ashkenas
fbbb2e675e
Fixes #1843 -- reworks parsing behavior. It now always applies if you define it, and no longer passes xhr. (parsing should be a pure function of the data)
2012-11-28 14:26:49 -05:00
Adam Krebs
bc87c3fa46
add options function test
2012-11-27 11:22:19 -05:00
Brad Dunbar
94b86bf902
Fix gh-1201 - Simple TravisCI support.
2012-11-19 17:29:37 -05:00
Jeremy Ashkenas
ef8bb66839
Asserting that cloning a model and passing it in as attributes doesn't share object identity.
2012-11-19 17:00:47 -05:00
Tim Griesser
a96fe08f92
allowing events to be passed in view's options
2012-11-16 14:21:59 -05:00
Brad Dunbar
39ff3870a7
Fix gh-1820 - Update comment, use global flag.
2012-11-14 17:00:17 -05:00
Brad Dunbar
b75c4c52ee
Merge branch 'master' into emulate-options
...
Conflicts:
backbone.js
test/sync.js
2012-11-02 17:05:29 -04:00
Brad Dunbar
d196c25fe6
Strip trailing space from fragments.
2012-11-02 09:03:16 -04:00
Brian Erickson
d389418eb1
Updated issue number in test to match pull request issue.
2012-11-01 22:56:15 -06:00
Brian Erickson
8decce8d7d
Issue #1793 : Backbone.history.navigate should use this.getFragment instead of fragment to avoid routes getting triggered twice
2012-11-01 22:41:47 -06:00
Casey Foster
7909341139
Add test for #1791
2012-11-01 17:09:05 -07:00
Brad Dunbar
c9585a35ca
Add a more meaningfull test for parsing by default.
2012-10-23 08:34:23 -04:00
Genadi Samokovarov
85a1e3ea5c
Use _.pick to simplify View#_configure
2012-10-22 12:51:43 +03:00
Brad Dunbar
aa4dd9de37
Add test for #1758 .
2012-10-19 17:06:09 -04:00
Jeremy Ashkenas
203e9b9e2d
Merge pull request #1757 from braddunbar/beforesend
...
Preserve user provided beforeSend.
2012-10-19 13:28:27 -07:00
Brad Dunbar
1d909d4fe0
Fix #1756 - preserve user provided beforeSend.
2012-10-19 16:08:40 -04:00
Brad Dunbar
db26c74d1a
Merge pull request #1746 from michalkot/master.
...
Allow empty routes.
2012-10-17 07:53:15 -04:00
Sam Breed
46b8ee3358
testing expected behavior when Model.parse returns null
2012-10-14 17:32:17 -06:00
Brad Dunbar
9b6826929c
Tweak add implementation.
2012-10-08 10:14:53 -04:00
Brad Dunbar
7278dfbe7e
Use ok(false) instead of non-existent fail.
2012-10-08 09:33:45 -04:00
Dave Tonge
c2261bf962
Modified two tests to listen for error events rather than catching exceptions when adding an invalid model to a collection
2012-10-08 05:26:55 +01:00
Tim Griesser
36516d9a3e
Overhauling set/change for speed improvements
2012-10-05 19:41:40 -04:00
Radoslav Stankov
4a20d66f66
Check if model/collection support .off when disposing of the view
2012-10-05 22:04:12 +03:00
Jeremy Ashkenas
bdefd3cce1
Merge branch 'change-bug' of https://github.com/tgriesser/backbone
2012-10-03 15:11:01 -04:00
Ian Storm Taylor
3169cfe6ed
swapped optional route syntax to parentheses, and adding docs
2012-10-02 19:10:59 -07:00
Ian Storm Taylor
ac8a807f49
added optional groups to route syntax, with tests
2012-10-02 19:10:59 -07:00
Brad Dunbar
3f530c2ab5
Fix #1695 - Ignore location.search during pushState transition.
2012-10-02 06:36:23 -04:00
Jeremy Ashkenas
84039f3924
Merge pull request #1693 from braddunbar/el-function
...
Allow view.el to be provided as a function.
2012-10-01 20:18:57 -07:00
Jeremy Ashkenas
06c764c5e8
merge conflict resolved
2012-10-01 17:06:27 -04:00
Brad Dunbar
e2d5483616
Allow view.el to be provided as a function.
2012-10-01 15:39:02 -04:00
Tim Griesser
71b6404d73
refactor change/set, fixing #1478 and #1664
2012-10-01 15:16:55 -04:00
Sam Breed
b347f9f8d4
consistently handle undefined being passed to the model constr ( #1545 )
2012-10-01 10:06:00 -06:00
Casey Foster
1e87356815
Added test for sorting during collection#add
2012-09-22 16:14:11 -07:00
Brad Dunbar
142d2ac832
Fix #1604 - Refactor add, remove index option.
...
* Avoid temporary constructs by splicing duplicates during traversal.
* Remove `index` option.
* Avoid creating empty options.
2012-09-22 08:59:37 -04:00
Brad Dunbar
a424341355
Fix #1653 - Ensure that History can be used outside of the browser.
...
* Dispense with options argument.
* Use `window` to retrieve location/history by default.
* Don't throw outside of the browser, allowing location and
history to be replaced appropriately.
2012-09-17 14:38:48 -04:00
Brad Dunbar
c344201f6e
Fix #1655 - sortBy & groupBy use attributes.
2012-09-17 11:31:46 -04:00
Brad Dunbar
ed5eb58d65
Use global emulate options as defaults.
...
* `sync` accepts `emulateHTTP` and `emulateJSON` as options.
* Use global options as defaults.
2012-09-14 08:40:07 -04:00
Brad Dunbar
85fca58bb9
Refactor reset/sort.
...
* Avoid creating unnecessary objects/arrays.
* Add test for sort-style comparator context.
2012-09-14 08:13:33 -04:00
Brad Dunbar
36a733a8bc
Tweak string comparator implementation.
2012-09-14 08:05:41 -04:00
Brad Dunbar
8fdcaf207a
Merge pull request #1587 from krawaller/master.
...
Conflicts:
test/collection.js
2012-09-14 07:19:57 -04:00
KungD
8f29954011
removed prefix logic
2012-09-14 07:22:22 +02:00
KungD
4707b02056
removed automatic sorting in anticipation of sort option to .set
2012-09-12 18:27:10 +02:00
KungD
d2b4c1e55e
test update
2012-09-12 07:06:54 +02:00