backbone.js events not firing after re-render

前端 未结 4 537
孤城傲影
孤城傲影 2020-12-24 07:08

[EDIT: I solved earlier problem by calling delegateEvents(), but shouldn\'t have to. Re-posting w/more info.]

I have a View that when rendered has a login button on

4条回答
  •  无人及你
    2020-12-24 07:31

    I'm facing the same problem. The way I solved it for now is completely re- instantiating the View object with new MyView() this ensures that the events are rebound.

    Hope that helps?

提交回复
热议问题