How to trigger / bind custom events in Backbone.js views?

前端 未结 3 824
情深已故
情深已故 2021-01-31 16:30

I have a Backbone View that uses iScroll to implement a slideshow.

iScroll publishes an onScrollEnd event, but I cannot seem to bind/subscribe to it inside

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-31 16:51

    It might not be obvious, but event property in backbone.js views is used only for DOM events. Custom events should be bound as James Brown mentioned above.

提交回复
热议问题