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
7c7f550a70
adding a favicon
2012-01-13 12:28:04 -05:00
Jeremy Ashkenas
a881ba6f5a
Fixes #720 , document 'constructor'
2012-01-13 11:14:07 -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
Jeremy Ashkenas
a49bb4f3e1
Fixes #811 -- allow you to pass a context when unbinding events as well.
2012-01-12 17:09:15 -05:00
Jeremy Ashkenas
d514f2b4dc
fixes #814 -- load initial models after Collection#initialize, not before.
2012-01-12 16:46:27 -05:00
Jeremy Ashkenas
93cb997fc3
removing overzealous events setting API.
2012-01-12 16:37:18 -05:00
Jeremy Ashkenas
feefb1c352
Merge pull request #815 from zowens/master
...
View Event Callbacks as Functions
2012-01-12 13:34:55 -08:00
Jeremy Ashkenas
88e6b32b51
Fixes #822 , change comment to avoid 'confusing' reference to super
2012-01-12 16:18:15 -05:00
Jeremy Ashkenas
4d29dfc388
Fixes #823 , mention 'attributes'
2012-01-12 16:16:34 -05:00
Jeremy Ashkenas
cee62e6541
Fixes #826 -- expose Backbone.wrapError.
2012-01-12 16:05:53 -05:00
Jeremy Ashkenas
4719659298
Fixes #841 , adding upgrading jquery, classname --> class in the docs.
2012-01-12 15:26:46 -05:00
Jeremy Ashkenas
1d90bb9cfc
binding the comparator function before using it, so that you can rely on properties of your collection within it.
2012-01-12 15:13:22 -05:00
Jeremy Ashkenas
a8dbe4efa7
Merge pull request #854 from braddunbar/inline-add-remove
...
Only Increment Length Once
2012-01-11 17:19:47 -08:00
Brad Dunbar
4dd506c3d4
more descriptive variable name
2012-01-11 18:25:17 -05:00
Brad Dunbar
f329cbffe4
only increment length once
2012-01-11 17:37:51 -05:00
Jeremy Ashkenas
8cfb243b8e
Fixes #836 , Fixes #708 -- going back to previous stance: two models with the same id can't be added to the same collection.
2012-01-11 17:03:30 -05:00
Jeremy Ashkenas
cb7090db77
fixes #838 -- allow View#attributes to be defined as a function, as well as a value.
2012-01-11 16:47:50 -05:00
Jeremy Ashkenas
d3ae0aa92a
Fixes #839
2012-01-11 15:56:27 -05:00
Jeremy Ashkenas
3cbd7909f1
clarifying paragraph for #843
2012-01-11 15:46:45 -05:00
Jeremy Ashkenas
bf1ffbeb67
nice refactor. removed _add and _remove and moved 'em in to the public API.
2012-01-11 13:45:16 -05:00
Jeremy Ashkenas
eb868b66c8
merging in #846
2012-01-11 12:28:38 -05:00
Jeremy Ashkenas
2312b9072c
adding a test to ensure that routes aren't triggered multiple times. #849
2012-01-11 12:11:10 -05:00
Jeremy Ashkenas
933469a2bd
Merge pull request #851 from mickeyreiss/master
...
Switch order of delegateEvents and initialize in View constructor
2012-01-11 09:04:49 -08:00
Jeremy Ashkenas
1675e76cb7
Merge branch 'master' of github.com:documentcloud/backbone
2012-01-11 11:56:22 -05:00
Jeremy Ashkenas
df716504cb
Documentation request in #599
2012-01-11 11:56:01 -05:00
Brad Dunbar
c8919c4b05
collection.add should not alter models array
2012-01-10 17:18:11 -05:00
Jeremy Ashkenas
68d95c82ac
Merge pull request #852 from braddunbar/no-bindall
...
No need to _.bindAll _onModelEvent
2012-01-10 07:18:05 -08:00
Brad Dunbar
61b277937e
no need to _.bindAll _onModelEvent
2012-01-10 07:16:53 -05:00
Mickey Reiss
478aaf3d00
Switched order of delegateEvents and initialize in Backbone.View constructor in order to allow for explicit setting of this.el in initialize (and ensure that events are bound correctly).
2012-01-09 13:49:32 -05:00
Jeremy Ashkenas
780ddd393c
Adding Diaspora as an example app.
2012-01-08 09:55:21 -05:00
Zack Owens
cd18a968d2
adding docs for events function
2012-01-07 10:19:18 -05:00
Zack Owens
b081fe87a5
view events can now be a function that returns an events object
2012-01-07 10:17:57 -05:00
Brad Dunbar
1ffae591c8
only call splice once instead of on each add
2012-01-06 19:37:38 -05:00
Jeremy Ashkenas
1715c181ad
Fixes #81 -- optimize for addition of large arrays of models, not for individual inserts.
2012-01-06 15:42:43 -05:00
Jeremy Ashkenas
6b3ff7b035
Fixes #9 , Backbone comparators can now be either sort() or sortBy() iterators.
2012-01-06 14:53:43 -05:00
Jeremy Ashkenas
44bb57a217
being a bit stricter about comment wrapping at 80 chars.
2012-01-06 14:13:49 -05:00
Jeremy Ashkenas
060da2b991
Merge pull request #842 from braddunbar/hasChanged-comparison
...
hasChanged/set should use the same comparison
2012-01-06 06:58:55 -08:00
Brad Dunbar
934aba4c6e
hasChanged/set should use the same comparison
...
When setting a value, if hasChanged and set disagree
about equality then hasChanged will return true without
firing a 'changed:*' event (or vice versa). Using the
same comparison (_.isEqual) solves this problem.
2012-01-06 09:19:23 -05:00
Jeremy Ashkenas
d06e8a6854
Adding Picplum as an example app
2011-12-30 09:00:02 -05:00
Jeremy Ashkenas
9a56d525b7
streamlining idAttribute documentation.
2011-12-30 08:51:50 -05:00
Tim Branyen
7420342d5c
Merge pull request #821 from iros/819.idAttribute
...
Added idAttribute navigation link to sidebar
2011-12-26 12:15:54 -08:00