Backbone.js : repopulate or recreate the view?

后端 未结 7 1174
灰色年华
灰色年华 2020-11-27 08:49

In my web application, I have a user list in a table on the left, and a user detail pane on the right. When the admin clicks a user in the table, its details should be displ

7条回答
  •  余生分开走
    2020-11-27 09:38

    To fix events binding multiple times,

    $("#my_app_container").unbind()
    //Instantiate your views here
    

    Using the above line before instantiating the new Views from route, solved the issue I had with zombie views.

提交回复
热议问题