Skip to content

Instantly share code, notes, and snippets.

@mdix
Created November 17, 2015 09:11
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 mdix/610f38f4714d21da3d22 to your computer and use it in GitHub Desktop.
Save mdix/610f38f4714d21da3d22 to your computer and use it in GitHub Desktop.
Something
stampit()
.init(function() {
if (this.connect.toString().indexOf('not implemented') !== -1) {
this.connect();
}
if (this.save.toString().indexOf('not implemented') !== -1) {
this.save();
}
})
.methods(
{
connect: () => {
throw new Error('connect not implemented');
},
save: () => {
throw new Error('save not implemented');
}
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment