walmartlabs/thorax

Side by side usage with Backbone.relational

Opened this issue · 0 comments

Using Thorax together with Backbone-relational requires some workarounds to get it running.
The problem is, that Backbone-relational expects you to extend from Backbone.RelationalModel instead of Backbone.Model. But if you extend from Backbone.RelationalModel, then the functionalities from Thorax are missing.

Because Thorax is more a framework then Backbone.RelationalModel, I would expect that Backbone.RelationalModel is extented by the model of Thorax. Right now this works fine, because Thorax.Model doesn't override any methods from Backbone.Model. But in the future this might be an issue, becauase Thorax.Model would then call Backbone.Model (super) instead of Backbone.RelationalModel.

It would be nice, if the thorax model extensions could be wired into another model, where super can be provided. This would ensure that future Thorax versions works fine with Backbone-relational.