Commit Graph

1124 Commits

Author SHA1 Message Date
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
Jeremy Ashkenas
36dfdab567 Merge pull request #1285 from braddunbar/ajax
Avoid throwing when $ is not defined.
2012-05-05 15:33:55 -07:00
Brad Dunbar
22606f9b25 Tweak events implementation. 2012-05-05 18:11:38 -04:00
brad dunbar
7fcba24db8 Merge pull request #1284 from lifesinger/master
Improve performance using array instead of linked-list to implement Backbone.Events
2012-05-05 13:18:09 -07:00
Brad Dunbar
4dcf4bde7e Avoid throwing when $ is not defined. 2012-05-05 15:26:42 -04:00
lifesinger
15a61c08ee refactor events using array instead of linked-list to improve performance 2012-05-05 17:30:25 +08:00
Jeremy Ashkenas
6c3d3838e1 Merge pull request #1283 from braddunbar/retrieve-all
Fix #1282 - "all" callback list is retrieved for each event.
2012-05-04 13:41:37 -07: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
Jeremy Ashkenas
fdc12d1608 Merge pull request #1274 from braddunbar/null-id
null and undefined are invalid ids.
2012-05-02 20:52:20 -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
Jeremy Ashkenas
e0d349a548 Merge branch 'master' of github.com:documentcloud/backbone 2012-05-02 11:33:42 -04:00
Jeremy Ashkenas
d49c4da2cf updating linkedin example app 2012-05-02 11:32:56 -04:00
Jeremy Ashkenas
26a3e2b632 Merge pull request #1264 from gsamokovarov/patch-1
Whitespace cleanup for extend and Collection.prototype.chain
2012-05-01 10:13:43 -07:00
Genadi Samokovarov
c4f55849b4 Whitespace cleanup for extend Collection.prototype.chain function definitions. 2012-05-01 19:54:33 +03:00
Jeremy Ashkenas
67dc8b96ec Merge pull request #1257 from benatkin/patch-1
Use the same type of URL for installation instructions.
2012-04-30 10:38:49 -07:00
Ben Atkin
b6ab27adc8 point to CoffeeScript.org for installation instructions 2012-04-30 11:29:01 -06:00
Jeremy Ashkenas
06338a7add shifting the Walmart mobile down a teense. 2012-04-30 10:19:31 -04:00
Jeremy Ashkenas
7de0b2630f Merge pull request #1258 from syntacticx/master
Adding Walmart Mobile as an example
2012-04-30 07:16:37 -07:00
Jeremy Ashkenas
ff8f9d4d92 Merge pull request #1260 from zamiang/push_state_unsupported
Fix #1252 - Backbone history with pushState enabled incorrectly handles urls with query params in browsers that do not support pushState
2012-04-30 07:03:28 -07:00
Ryan Eastridge
4ed60168ef add link to Walmart Mobile 2012-04-28 13:23:42 -07:00
Brennan Moore
0c4bea53ff removing ds_store -- should be added to .gitignore... 2012-04-28 15:26:43 -04:00
Brennan Moore
f878b7cfc2 supporting url params in browsers without pushState support when pushState is enabled 2012-04-28 15:25:37 -04:00
Benjamin Atkin
7958956e84 Use the same type of URL for installation instructions.
Currently docco points to the github web page, while
coffee-script points directly to the HTTP git URL.
2012-04-27 22:35:44 -06: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
8aee79ae41 Fixes #1223 -- new attributes left behind after a failed wait:true 2012-04-23 17:56:23 -04:00
Jeremy Ashkenas
07a00ba45d adding tests for merge:true 2012-04-23 17:15:58 -04:00
Jeremy Ashkenas
b42cc64878 tweaking duplicate model merge:true 2012-04-23 17:09:57 -04:00
Jeremy Ashkenas
9ee0358cd6 Merge pull request #1220 from folded/master
Optionally merging updated model state on collection add.
2012-04-23 13:58:03 -07:00
Jeremy Ashkenas
04a778c747 Merge pull request #1239 from philfreo/master
Collection.clone()
2012-04-23 12:48:38 -07:00
Brad Dunbar
fd25368994 Correct minor mistake in todo example. 2012-04-23 13:25:15 -04:00
Jeremy Ashkenas
c986ae233a adding KANO/GAMES as an example app 2012-04-23 12:19:00 -04:00
Phil Freo
3d6772a2f8 Adding Collection's clone() to docs 2012-04-19 11:20:42 -07:00
Phil Freo
7eca8c78b6 Giving Collections a clone() method. 2012-04-19 11:17:41 -07:00
Jeremy Ashkenas
b536b137b8 Merge branch 'master' of github.com:documentcloud/backbone 2012-04-18 14:56:36 -04:00
Jeremy Ashkenas
e2042c309f Fixes #1225 -- old documentation for urlRoot vs collection.url() 2012-04-18 14:56:02 -04:00
Brad Dunbar
35bb2c0fdc Use raises correctly. 2012-04-18 11:03:40 -04:00
Jeremy Ashkenas
9c0814133b Merge pull request #1234 from braddunbar/tagname
Fix #1228 - tagName can be provided as a function.
2012-04-17 08:48:00 -07:00
Jeremy Ashkenas
dddd001d3e pitchfork ain't https 2012-04-17 10:20:36 -04:00
Brad Dunbar
5fc8005c83 Fix #1228 - tagName can be provided as a function. 2012-04-17 10:17:37 -04:00
Jeremy Ashkenas
b1441b23ab adding pitchfork as an example app. 2012-04-17 10:16:11 -04:00
Jeremy Ashkenas
e1e42571a7 reverting master backbone-min.js to 0.9.2 2012-04-16 14:48:01 -04:00
Jeremy Ashkenas
bdfcd5ef0e Adding Rdio as an example app. 2012-04-16 13:24:19 -04:00
Tobias Sargeant
7dbab65bce Support merging of updated object state on collection add. 2012-04-13 10:15:34 -04:00
Jeremy Ashkenas
a88efef3cd Merge pull request #1213 from braddunbar/backbone-ajax
Fix #474 - Backbone.ajax
2012-04-11 07:37:24 -07:00
Brad Dunbar
87c9b17aa7 Fix #474 - Backbone.ajax 2012-04-11 08:33:20 -04:00
Jeremy Ashkenas
67c3ea86c1 simple refactor for #1206 2012-04-10 10:27:22 -04:00
Jeremy Ashkenas
656f59e018 Merge pull request #1206 from aterris/frag
Normalize fragment when hashChange: false in navigate
2012-04-10 07:24:09 -07:00