문제

I need to destroy backbone relational model on client side, without performing any http requests. Under "destroy" word i mean removing model from all collections, removing all relations from other models to current one, and finally, removing all data about current model.

How this can be achieved?

도움이 되었습니까?

해결책

I'm not sure if this is the correct way of doing it, but I have been using;

Backbone.Relational.store.unregister(model);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top