azproduction / rivets-backbone-adapter

Backbone.js adapter for Rivets.js data-bind with nested models and collections support
http://azproduction.github.io/rivets-backbone-adapter/example/index.html
MIT License
48 stars 15 forks source link

Rivets is not subscribe to model via adapter in case of dependency #4

Open mogadanez opened 10 years ago

mogadanez commented 10 years ago

Don't know it is adapter or rivets itself problem. Demo: http://jsfiddle.net/Nwq9J/5/

azproduction commented 10 years ago

Try this:

model.someFunc < :name

http://jsfiddle.net/Nwq9J/6/

PS better to use rawgithub.com than raw.github.com

mogadanez commented 10 years ago

yes, this helps when computed property and watched property in same model. but not work when it's different http://jsfiddle.net/Nwq9J/10/

in real life it is view and model objects provided to binding

PS. i'm trying to upgrade from rivets 0.4 to latest one, and have many compatibility issues.

azproduction commented 10 years ago

I think that if a computed property depends on property of external model you are doing something wrong. Anyway it is up to you to decide.

mogadanez commented 10 years ago

In case when I have several views to one model it looks very logical for me. Each view show some of model's values different way, I not want put all this view-dependent methods in model.

without binding I should do it in view by subscribe and update manually.

On Wed, Mar 5, 2014 at 11:02 PM, Mikhail Davydov notifications@github.comwrote:

I think that if a computed property depends on property of external model you are doing something wrong. Anyway it is up to you to decide.

Reply to this email directly or view it on GitHubhttps://github.com/azproduction/rivets-backbone-adapter/issues/4#issuecomment-36779805 .