Jeremy Ashkenas
|
67a6092890
|
comments++
|
2012-01-25 14:03:07 -05:00 |
|
Jeremy Ashkenas
|
c5ddc6b8f8
|
fixing accidental global 'l' in loop.
|
2012-01-25 10:24:53 -05:00 |
|
Jeremy Ashkenas
|
3cf646b57d
|
Merge branch 'master' of github.com:documentcloud/backbone
|
2012-01-23 18:16:50 -05:00 |
|
Jeremy Ashkenas
|
ab164c450d
|
Overhauling 'validate' -- Receives the computed new state of the attrs, not just the delta. Now runs on model create, raising an exception if you try to 'new' and invalid model ... also runs even if changed silently.
|
2012-01-23 18:16:20 -05:00 |
|
Jeremy Ashkenas
|
617fc7d056
|
Merge pull request #887 from nhajratw/master
Just updated the Copyright date
|
2012-01-23 14:16:31 -08:00 |
|
Nayan Hajratwala
|
94333d2d36
|
updated date
|
2012-01-23 17:07:35 -05:00 |
|
Jeremy Ashkenas
|
71641fbe03
|
moving the methodMap inside of the Backbone.sync section.
|
2012-01-23 15:06:31 -05:00 |
|
Jeremy Ashkenas
|
3e5f7132a8
|
Fixes #886, pass through options.parse when creating a new collection.
|
2012-01-23 14:58:28 -05:00 |
|
Jeremy Ashkenas
|
49804535dc
|
Fixes #490 -- named, but not splatted params, must match at least one character.
|
2012-01-23 11:00:09 -05:00 |
|
Jeremy Ashkenas
|
96a7274cf7
|
Fixes #538 -- adds Backbone.history.stop() for unit testers.
|
2012-01-23 10:31:53 -05:00 |
|
Jeremy Ashkenas
|
a9a3499af1
|
linking to backbonejs.org directly
|
2012-01-22 12:55:05 -05:00 |
|
Jeremy Ashkenas
|
04c2d10f30
|
resolved merge
|
2012-01-22 12:45:39 -05:00 |
|
Jeremy Ashkenas
|
efa58fd2d7
|
making method colon style consistent -- no space before the colon.
|
2012-01-22 12:44:25 -05:00 |
|
Brad Dunbar
|
66161b06fd
|
Model.constructor only take attrs, not models.
As per discussion in #873.
|
2012-01-20 15:53:39 -05:00 |
|
Brad Dunbar
|
3a891854e8
|
setting undefined attributes
* undefined attrs should still be set
* unset triggers change for undefined attrs
* values are set regardless of change/equality
|
2012-01-20 11:02:46 -05:00 |
|
Brad Dunbar
|
b05deb5fb5
|
fix #871 - calling set with 'attributes' property
|
2012-01-18 12:45:09 -05:00 |
|
Brad Dunbar
|
09ab8cb17d
|
Collection#add tweaks
* leave collection in a consistent state after throw
* correct indices
|
2012-01-17 23:53:02 -05:00 |
|
Brad Dunbar
|
b2a2d6fff6
|
added/removed should be add/remove
|
2012-01-17 21:55:45 -05:00 |
|
Jeremy Ashkenas
|
f417ddd1ab
|
Fixes #555 -- don't return the parent constructor's value.
|
2012-01-17 16:13:28 -05:00 |
|
Jeremy Ashkenas
|
cea56e523a
|
Fixes #563. Initial draft of 'wait: true' for pessimistic instead of optimistic save() create() and destroy(). Makes it easier to have your asynchronous UI and eat it too.
|
2012-01-17 15:26:26 -05:00 |
|
Jeremy Ashkenas
|
cdce2ec30f
|
DRY-ing up setElement() a bit.
|
2012-01-17 14:17:02 -05:00 |
|
Jeremy Ashkenas
|
b5875ac64c
|
removing redundant attributes check.
|
2012-01-17 14:13:18 -05:00 |
|
Jeremy Ashkenas
|
0dedb05093
|
Merge pull request #862 from braddunbar/implicit-callback
Router: Use implicit callback if none provided
|
2012-01-17 11:02:32 -08:00 |
|
Jeremy Ashkenas
|
1c053d9f71
|
Fixes #567 ... Adds a view. for the jQuery cached reference to a view's element ... and this.setElement() as a way to easily change it, redelegating events.
|
2012-01-17 13:54:42 -05:00 |
|
Brad Dunbar
|
57ef21839b
|
use implicit callback if none provided
|
2012-01-17 12:12:20 -05:00 |
|
Jeremy Ashkenas
|
42d321f236
|
Fixes #570, supports Model#save(key, value)
|
2012-01-17 11:55:15 -05:00 |
|
Jeremy Ashkenas
|
2d02a3cfb6
|
Fixes #861, better error message for adding invalid models to a collection.
|
2012-01-17 10:54:03 -05:00 |
|
Jeremy Ashkenas
|
7ba0275613
|
Fixes #574, clone 'models' before removing, so as to allow collection.remove(collection.models)
|
2012-01-17 10:29:01 -05:00 |
|
Jeremy Ashkenas
|
ff176ac61f
|
reverting previous change (#859)
|
2012-01-17 10:17:42 -05:00 |
|
Jeremy Ashkenas
|
05a45d3e9d
|
Merge pull request #859 from ekratskih/master
Cross domain issue patch for old ie browsers (<=7)
|
2012-01-17 07:09:55 -08:00 |
|
Edil Kratskih
|
07ba2d5398
|
Simple refactoring
|
2012-01-16 13:10:34 +06:00 |
|
Brad Dunbar
|
9df6387d9e
|
trigger all for each event
|
2012-01-13 18:58:11 -05:00 |
|
Jeremy Ashkenas
|
9c0e7f00ea
|
Merge pull request #857 from braddunbar/events-documentation
Documentation for Backbone.Events
|
2012-01-13 14:25:27 -08:00 |
|
Jeremy Ashkenas
|
2dce413247
|
Adding options.index to Collection#add and #remove.
|
2012-01-13 17:20:15 -05:00 |
|
Brad Dunbar
|
920d047145
|
Documentation for Backbone.Events
|
2012-01-13 17:16:53 -05:00 |
|
Jeremy Ashkenas
|
34e0f7fb26
|
Fixes #582, fixes #425, run a second loop to trigger change:attribute events after all changes have been made.
|
2012-01-13 17:08:48 -05:00 |
|
Jeremy Ashkenas
|
3f0979f09a
|
Fixes #593 -- pass complete options to model constructor on create()
|
2012-01-13 16:56:12 -05:00 |
|
Jeremy Ashkenas
|
4316b04ffa
|
allow the passing of any number of arguments to Model#initialize
|
2012-01-13 16:10:14 -05:00 |
|
Jeremy Ashkenas
|
5aa4fda9ba
|
Fixes #640 -- adds the ability to bind/unbind/trigger (on/off/trigger) multiple, space separated events, after jQuery.
|
2012-01-13 16:01:59 -05:00 |
|
Jeremy Ashkenas
|
51335bf10f
|
Fixes #641 -- on and off are now the preferred names for bind and unbind, following jQuery.
|
2012-01-13 15:27:57 -05:00 |
|
Jeremy Ashkenas
|
b28a24207a
|
fixes #651 -- always clone options.
|
2012-01-13 14:30:43 -05:00 |
|
Jeremy Ashkenas
|
5b43cd9dd1
|
Fixes #419 -- add a global 'route' event, on Bacckbone.history.
|
2012-01-13 13:47:55 -05:00 |
|
Jeremy Ashkenas
|
a78be62684
|
Fixes #702: adds 'initial' and 'shuffle' to Backbone collections.
|
2012-01-13 13:30:53 -05:00 |
|
Jeremy Ashkenas
|
a8bd142b64
|
Fixes #714, assign model.collection early, so that those overriding set() can use it from the get-go.
|
2012-01-13 13:19:28 -05:00 |
|
Jeremy Ashkenas
|
837f774fd8
|
lint/style tweaks to prev commit.
|
2012-01-13 11:07:38 -05:00 |
|
Jeremy Ashkenas
|
159e51e860
|
Merge pull request #723 from braddunbar/bind-during-trigger
(un)bind does not alter callback list during trigger
|
2012-01-13 08:03:04 -08:00 |
|
Jeremy Ashkenas
|
8c03df50c3
|
Fixes #783 -- adds a 'sync' event, fired whenever a successful call has been made to update the server.
|
2012-01-13 10:57:51 -05:00 |
|
Brad Dunbar
|
47e1f7e6c8
|
(un)bind does not alter callback list during trigger
|
2012-01-13 08:24:47 -05:00 |
|
Jeremy Ashkenas
|
d5ff5e32f6
|
Fixes #786 (and others) -- leading slashes should never be defined as routes, or passed to navigate ... so strip 'em out proactively.
|
2012-01-12 18:10:41 -05:00 |
|
Jeremy Ashkenas
|
328cb66638
|
Fixes #803, allows you to opt-out of hashchange, while opting-in to push state, using full-page refreshes for old browsers.
|
2012-01-12 17:44:45 -05:00 |
|