-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.7.0 Release Candidate #184
Conversation
Very nice work! |
Yup, everything is nestable now. =) |
Very cool, the Layout/LayoutView/LayoutManager differentiation was a little hard to grasp. Thanks for the hard work. |
Exactly what I was just looking for! Nice work. Will be implementing and testing shortly. |
This has solved some problems for me, such as my subviews' events actually being binded. All my jasmine tests still pass in my application, and the test suite finishes about 15% faster, and we've noticed some noticeable performance increases. Thank you! |
Hey @tbranyen is backbone.layoutmanager.docs the repo for 0.7.x docs or is it somewhere else? Do you need any help with writing stuff? |
Yeah, it's the repo. I've been trying to get a design locked down, but I've hated everything I made. I think the documentation needs a little bit of tweaking as well. The migration guide is already written. If you're interested in helping out, I can add you as a collab to it. |
Great! :) Please, do!.. I can help with both. On 4 December 2012 14:34, Tim Branyen notifications@github.com wrote:
|
https://dl.dropbox.com/u/79007/backbone.layoutmanager.docs/index.html is a preview of them. |
Awesome added you as a collab. |
Feel free to change anything (content/design) in the repo and to add credits. |
Thanks! I will |
Disclaimer
This has been tested in a few production applications, but for the most part has not been battle tested. Please drop into your application and follow the migration guide. Report all bugs in here.
Note: Documentation is still being worked on, the README is limited, but the 0.6.6 docs will exist until the new site is launched.
Merging on Monday
Migration Guide From 0.6.*
There have been a few small "breaking" changes that have been made to create a more unified and sane API. You should have to change relatively little to gain the benefits from this release. Please ask all questions in the comment area below and not open new issues.
render
calls that previously took a function as a callback argument, should now be changed torender().done
orrender().then
check out http://api.jquery.com/category/deferred-object/ for more information.LayoutManager.configure
object, change thepaths
Object toprefix
which is a single String property pointing to where your templates live.template
properties forLayouts
.swapLayout
you can patch it back in, but it's removed due to lack of use case.Every other change should be compatible with your existing implementation.
Changelog
swapLayout
.serialize
is deprecated and replaced bydata
.render(callback)
is deprecated torender().done()
deferreds only.model
andcollection
events insidecleanup
.Backbone.LayoutView,
Backbone.Layout, and
Backbone.View(with
manageset to
true`) are now all identical.paths
is now a Stringprefix
, set this to the folder where your templates live.myView.render().view
now allows you to attachview.el
after a render forsome nice one-liners.
new Backbone.LayoutView({ template: "#t" }).render().view.$el.appendTo("body");