Created
November 17, 2015 09:11
-
-
Save mdix/610f38f4714d21da3d22 to your computer and use it in GitHub Desktop.
Something
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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