Backbone JS: can one view trigger updates in other views?

前端 未结 7 1203
失恋的感觉
失恋的感觉 2020-12-23 02:20

In my simple project I have 2 views - a line item view (Brand) and App. I have attached function that allows selecting multiple items:

var BrandView = Backbone.V         


        
7条回答
  •  旧时难觅i
    2020-12-23 03:09

    Same as John has suggested above, the Mediator Pattern works really good in this scenario, as Addy Osmani summing this issue up again in Backbone fundamentals.

    Wound up using the Backbone.Mediator plugin which is simple and great, and makes my AMD View modules working together seamlessly =)

提交回复
热议问题