I have a marionette ItemView, which creates some children views. These children views are using jQuery UI's draggable function on their elements. I instantiate the draggable in the onRender of the child view.
When I call close on the parent view, in it's onClose function, I call close on the children views. In the onClose if the child views, I am calling .draggable("destroy"). My problem is, I get the following error: cannot call methods on draggable prior to initialization; attempted to call method 'destroy'
I am using backbone babysitter to manage my children views.
Any ideas? Is there a different way I should manage closing children views?