Error in JS Console:
Uncaught ViewDestroyedError: View (cid: "view351") has already been destroyed and cannot be used. backbone.marionette.js?body=1:1715
Code Snippet:
initialize: (options) ->
HWAs = @model.get('homework_assignments')
@collection = new App.Collections.HomeworkAssignments(HWAs)
@collection.on "sync", =>
@render()
@collection.fetch()
Zombie views are appearing when following these steps:
- Visit the page with the code above
- Navigate back using the browser's back button
- Click on a link leading to the view containing the code above
Can anyone suggest a solution for this issue?