Skip to content

Instantly share code, notes, and snippets.

@andreypopp
Created March 26, 2013 22:02
Show Gist options
  • Save andreypopp/5249716 to your computer and use it in GitHub Desktop.
Save andreypopp/5249716 to your computer and use it in GitHub Desktop.
class exports.Behaviour extends View
setElement: ->
this.$el.removeClass(this.className) if this.className?
super
remove: ->
this.$el.removeClass(this.className) if this.className?
this.undelegateEvents()
this.stopListening()
this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment