Skip to content

Instantly share code, notes, and snippets.

Created February 26, 2015 19:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save devdays/f22821fd1fd12ba5dd05 to your computer and use it in GitHub Desktop.
Clean up in your widget
_destroy: function () {
// Use the destroy method to reverse everything your plugin has applied
// Remove any classes, including CSS framework classes, that you applied
this.filterElems.removeClass("ui-widget-content ui-helper-hidden ui-state-active " + this.options.className);
return this._super();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment