Skip to content

Instantly share code, notes, and snippets.

@jergason
Created May 30, 2012 16:22
Show Gist options
  • Select an option

  • Save jergason/2837408 to your computer and use it in GitHub Desktop.

Select an option

Save jergason/2837408 to your computer and use it in GitHub Desktop.
DESTROY
destroy: function() {
this.$el.remove()
this.off()
// destroy any children
for (var selector in this.autoChildren)
this.destroyChild(selector)
this.autoChildren = null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment