Paul Uithol
965c2992fa
Factor out model preparation to a separate function in Backbone.Collection, so 'create' and 'add' behave the same.
2011-04-26 10:36:28 +02:00
Paul Uithol
9b40c7aade
Merge branch 'master' of git://github.com/documentcloud/backbone
2011-04-26 10:00:06 +02:00
Jeremy Ashkenas
58708b3cec
clarifying wording
2011-04-25 15:55:40 -04:00
Samuel Clay
089aeb8385
Adding a note about using Collection.create on a model that has been saved server-side.
2011-04-25 15:51:59 -04:00
Samuel Clay
a00b798318
Adding in a note about Backbone.history.start() returning a boolean for whether or not a match has been found in the current URL fragment. Thanks to XiXora for the recommendation.
2011-04-25 13:07:35 -04:00
Samuel Clay
f44cfeeb36
Adding in a note about passing in an object literal or a model to Collection.create. Thanks to MattJ for the recommendation.
2011-04-25 13:01:03 -04:00
Samuel Clay
ee215be027
Adding test for hashbang URLs. For pull request #312 .
2011-04-22 12:16:17 -04:00
Samuel Clay
0cc8cb0890
Merge https://github.com/ptn/backbone
2011-04-22 11:52:38 -04:00
Samuel Clay
577758af89
Adding XHR object to Collection.create (which comes from Model.save).
2011-04-22 11:41:30 -04:00
Samuel Clay
399e7453f3
_ to status in Model.parse. No need to clobber Underscore.js just to ignore a parameter.
2011-04-22 11:32:57 -04:00
Samuel Clay
4881621a72
Adding XHR object to Model.parse and Collection.parse method signatures. jQuery and Zepto use the same callback signature: response, status, xhr.
2011-04-22 11:25:50 -04:00
Samuel Clay
1d4484d1e4
Removing Ender.js support for the time being, as it needs to fix its AJAX methods to corrospond with jQuery/Zepto success/error signatures.
2011-04-22 11:06:50 -04:00
Pablo A. Torres Navarrete
0f118ecb6e
Add a failing test for Collection.create not running callbacks
2011-04-21 12:07:11 -05:00
Pablo A. Torres Navarrete
1598801f23
Pass the error and success callbacks when creating the model to add to a Collection
2011-04-21 11:29:55 -05:00
Paul Uithol
0503b4d19e
Merge remote branch 'remotes/upstream/master'
...
Conflicts:
backbone.js
2011-04-19 10:19:11 +02:00
Jeremy Ashkenas
222d673dcc
Issue #289 . Enable the use of jQuery.Deferred by returning Deferred objects from save() and fetch() calls.
2011-04-18 17:08:34 -04:00
Jeremy Ashkenas
37ddad508d
Issue #309 , more sophisticated event handling, for unbinding events in the midst of them firing.
2011-04-18 16:39:26 -04:00
Jeremy Ashkenas
9159ed3578
clarifying that jQuery or Zepto is required for History support (for the moment)
2011-04-18 14:32:00 -04:00
Jeremy Ashkenas
857f756511
removing backbone-min from master ... it'll only live on the gh-pages branch now.
2011-04-18 11:28:45 -04:00
Jeremy Ashkenas
76b3ed1fb4
Merge branch 'fix_custom_events_on_models_inside_collections' of https://github.com/autohaus24/backbone
2011-04-18 10:42:52 -04:00
Jeremy Ashkenas
4070364e4d
merging in Ender.js support
2011-04-18 09:34:51 -04:00
Jeremy Ashkenas
5f3135f1bb
Merge branch 'master' of https://github.com/dvv/backbone
2011-04-18 09:28:11 -04:00
Jeremy Ashkenas
12661ff159
Merge branch 'master' of github.com:documentcloud/backbone
2011-04-18 09:19:15 -04:00
Jeremy Ashkenas
7b494c1e6d
Upgrading to Underscore 1.1.6 for test deps.
2011-04-18 09:19:04 -04:00
Vladimir Dronnikov
94edc63f20
ender.js support
2011-04-15 21:25:38 +04:00
Jacek Becela
1499d755b6
Check for model before accessing its properties, fixes #319
2011-04-15 09:34:18 +02:00
Jacek Becela
223c4fb210
Add failing test for #319
2011-04-15 09:32:46 +02:00
Brandon Leonardo
914ff9dd1d
rebuild to include previous change
2011-04-11 01:49:29 -07:00
Brandon Leonardo
21fa0aa6a2
change hashStrip regex to strip bang as well, so hash-bang urls will work transparently
2011-04-11 01:49:19 -07:00
Samuel Clay
f4cfbd633d
Documenting the new Backbone.noConflict() method.
2011-03-23 15:10:58 -04:00
Samuel Clay
1028e63f7b
Merge branch 'gh-pages'
...
Conflicts:
index.html
2011-03-23 14:12:49 -04:00
Samuel Clay
35ba4a9272
Adding Flow to sidebar under Examples.
2011-03-23 14:12:06 -04:00
Samuel Clay
67d61fc355
Adding Backbone.noConflict() and keeping track of the original root.Backbone.
2011-03-23 14:08:37 -04:00
Paul Uithol
7d881624bd
Even simpler; merely expose the (jq)XHR object, enabling the use of jQuery.Deferred.
2011-03-22 21:39:07 +01:00
Samuel Clay
fd35fcb6ee
Adding MetaLab's Flow to the examples.
2011-03-22 16:19:52 -04:00
Paul Uithol
8f80fb1fb4
A somewhat smarter approach (more DRY).
2011-03-22 19:22:46 +01:00
Paul Uithol
ed5a88d445
Make it possible to take advantage of jQuery.Deferred with Backbone, without breaking compatibility by changing return values.
...
Implemented by adding a "promise" attribute to Backbone.Model and Backbone.Collection, set by Backbone.Model's "fetch", "save", "destroy" and Backbone.Collectin's "fetch" and "create".
2011-03-22 17:35:05 +01:00
Jeremy Ashkenas
da52ae1c43
Merge branch 'fix-comment' of https://github.com/jimmydo/backbone
2011-03-21 11:00:14 -04:00
Jeremy Ashkenas
c9a634982a
Upgrade tests to Zepto 0.5
2011-03-21 10:32:56 -04:00
Jeremy Ashkenas
d149451fd4
Issue #278 . Allow 'extend' to be overrideable+inheritable.
2011-03-21 10:28:22 -04:00
Jeremy Ashkenas
d97d8bf336
Upgrading Backbone.js tests to Underscore 1.1.5
2011-03-20 20:26:17 -04:00
Jimmy Do
7ceab2ca63
Fix incorrect prototype.constructor comment
...
prototype.constructor does not affect instanceof
2011-03-17 14:14:18 -07:00
Jeremy Ashkenas
e2a5c18308
Adding Mobile SoundCloud as an example.
2011-03-10 12:16:39 -05:00
Dmitry Baranovskiy
0cdc525961
Fixed escapeHTML function
...
to skip not only &***;, but also &#***; and &x***;
2011-03-02 08:12:24 +11:00
Jeremy Ashkenas
7216d99350
merged gh-pages in.
2011-02-28 10:06:56 -05:00
Jeremy Ashkenas
52953c14ef
Adding mql's Substance.io
2011-02-28 10:00:32 -05:00
Jeremy Ashkenas
6c968b652a
Issue #224 ... underlining links, updating docs.
2011-02-14 17:00:39 -05:00
Jeremy Ashkenas
f4a394b906
Issue #223 ... fixing json2.js link.
2011-02-14 16:51:05 -05:00
Jeremy Ashkenas
0ca0481af4
adding basecamp mobile, instagreat, and tilemill
2011-02-14 16:48:25 -05:00
Jeremy Ashkenas
02c40e5526
linking to the documentcloud workspace
2011-02-14 15:48:37 -05:00