Skip to content

Instantly share code, notes, and snippets.

@matthewstokeley
Last active August 14, 2019 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewstokeley/56e428a4081bbc9bcc85767a779b42b9 to your computer and use it in GitHub Desktop.
Save matthewstokeley/56e428a4081bbc9bcc85767a779b42b9 to your computer and use it in GitHub Desktop.
maintaining backwards compatibility
/**
* @version 0.0.1
*/
class GenericUIComponent
{
constructor( options ) {
this.className = options.className
}
// provide a jQuery wrapper
$( _item ) {
this.$item = $( _item );
return this
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment