walmartlabs / thorax

Strengthening your Backbone
http://thoraxjs.org/
Other
1.32k stars 129 forks source link

View properties inheritance #396

Closed zverev closed 9 years ago

zverev commented 9 years ago

Hi!

There is a collection view, that has child views with common properties, so I would like to inherit these properties from the parent view. I've read the docs and found, that child views have parent property, but I can't use it within context function. The same applies to initialize function. Seems that this variable is declared after rendering a child view. Here is an example of my problem: http://jsbin.com/givuxa/6/edit

How can I properly inherit view-related variables from parent view to put them in view context?

kpdecker commented 9 years ago

2.0.0rc6 is a very old version of Thorax. Please try with 2.3.2 and let me know if you still have issues.

zverev commented 9 years ago

@kpdecker I've updated to 2.3.2, but unfortunately I still have these issues.

kpdecker commented 9 years ago

This was fixed in 3.0.0-alpha.5 by b8dd864ead1b73e90d2d5247cfbc4b7986c0832d. I'm working on getting a formal 3.0 release out to make this available.