method fn.remove_widget is removing $el element causing layout manager remove methods to fail.
Layout managers like backbone.viewmaster or also plain backbone also have remove methods, for example to clean some jquery plugins. But they also operate on $el, which is effectively destroyed in fn.remove_widget method. So I get some weird errors that $el doesn not exists.
method fn.remove_widget is removing $el element causing layout manager remove methods to fail.
Layout managers like backbone.viewmaster or also plain backbone also have remove methods, for example to clean some jquery plugins. But they also operate on $el, which is effectively destroyed in fn.remove_widget method. So I get some weird errors that $el doesn not exists.
I suggest to not do $el removal in that method.