A
A
Alexey Ukolov2015-06-09 21:32:03
backbone.js
Alexey Ukolov, 2015-06-09 21:32:03

How to effectively debug zombie handlers?

Sometimes it happens that after the View or controller is closed, zombie handlers remain (that is, the handler is triggered, but the view has already been destroyed - naturally, an error occurs).
How to find where this handler's legs grow from and why it didn't leave with the parent?
I read about it in some book, but I can't remember which one.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2015-06-10
@k12th

This means that the view was incorrectly deleted. Before deleting, you need to do undelegateEvents and do the same with child views, if any.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question