-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Please cover what's new in 0.9.9/0/9.10 #237
Comments
Starting point: Things I would also like us to bring in/cover related to the above:
Jeremy on
... and then, when you want to get rid of the view:
Note that none of this is necessary if you throw away both sides of the bound event at the same time -- those will still be GC'd as usual. Also, this isn't just for Views. The methods are available on anything that mixes in Backbone.Events. This should make it easier to remove events from either end of a bound event -- either the side that emits the messages, or the side that listens to them, depending on what you need. For views (objects that tend to listen to many events from disparate sources), yes, it should make it easier. Be sure to use the |
Regarding
similar with
|
cc @wookiehangover who did some amazing work summarizing the recent changes to 0.9.9. Sam, I haven't noticed anyone do a deep dive that goes into the Backbone 0.9.9 changes beyond the changelog since release (e.g more examples, use-cases). Have you given any consideration to doing a write-up that covers this? :) We've love to have one in Backbone Fundamentals, but will try to get this gradually covered as time allows otherwise. |
@addyosmani as a matter of fact, I have one in the works. I'll update as soon as I have it in a gist, but, yes, I'd be happy to have it posted elsewhere :) Thanks for the ping! |
Yay! SO stoked to hear that @wookiehangover :) We're happy to give you credit for anything we're able to pull in when you have something ready to share. Cheers for working on that! |
@wookiehangover just wanted to check in to see how things are going with your post idea :) |
Looking through the list of changes in 0.9.9, I see a few key areas we need to work on upgrading:
Jeremy covered the high-level points we should look at in his comment here but we should likely just work our way through the changelog for 0.9.9 and 0.9.10. Would anyone be interested in helping us upgrade the book to the latest version of Backbone? This would mean a lot as I and other contributors are currently focused on finishing other sections of the project. |
Hi @addyosmani. |
I do indeed mean the practicals, yes. The ones you referred to are the runnable examples whilst the code in the book would equally need to be updated. Right now the book is the first pain-point we want to address. |
@henrylearn2rock I've added a brief changlog for users wanting to upgrade from 0.9.2 to 0.9.10 as a start but I'm now reviewing what should be done for the rest of the book. As a reader, would you mind the 0.9.10/1.0 updates being in the appendix with explanations or would you expect the entire book (I guess primarily the internals chapter) to feature these changes? |
As a reader, I would prefer everything to be as in sync with the latest Backbone version as possible. |
From Jeremy: https://twitter.com/addyosmani/status/295118883130589185 @sindresorhus I would ideally <3 to update everything to be in sync, but we don't currently have the time to :/ What I am working on is an upgrade guide for 0.9.2 -> 0.9.10/1.0 which will provide instructions and code samples in the appendix. We could bring those in as changes throughout the book when time is more available. |
I feel we have fairly good coverage of the latest version at the moment, but do still need to update the Basics chapter to have better sync with the latest Backbone docs. If anyone would like to help with this, please let me know otherwise I'll look at it once I've worked through the rest of the technical reviews. |
This will continue being addressed as a part of #378 |
listenTo
andstopListening
{merge: true}
update
: "smart" updating of sets of modelsPatch
, when and why?once
event?options
,el
andtagName
may now be defined as functions. What are the use cases?The text was updated successfully, but these errors were encountered: