backbone-modelref icon indicating copy to clipboard operation
backbone-modelref copied to clipboard

extend Backbone.RelationalModel?

Open orlin opened this issue 13 years ago • 1 comments

I'd like to try Knockback, but need to use Backbone.RelationalModel. Seems like it depends on Backbone.ModelRef... Could Backbone.ModelRef extend Backbone.RelationalModel (as an option)?

orlin avatar Dec 29 '11 11:12 orlin

I use Backbone.RelationalModel with Backbone.ModelRef through composition rather than inheritance. in other words, model references can refer to models in a Collection that are derived from Backbone.RelationalModel.

Also, the dependency between Knockback and Backbone.ModelRef is optional. If you don't pass a Backbone.ModelRef to kb.Observable, kb.Observables, or kb.ViewModel, you do not require Backbone.ModelRef.

Do you have a specific use case to explain what you are proposing or the problem that you are encountering?

kmalakoff avatar Dec 29 '11 12:12 kmalakoff