-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
Description
I'm not sure if this is NativeView or Backbone itself, so apologies in advance.
When defining an element that is in page el: '#some-element if the element doesn't exist, it is rightly set to null.
In the render function I can return early in this case, but any events that are defined are attached to the document as the element isn't there. This is causing issues and interruptions for the rest of the page.
What should I be doing in this case? I've tried using undelegateEvents to no effect, as they haven't been correctly delegated, and the code looks for this.el.