Skip to content

Instantly share code, notes, and snippets.

@mdix
Created December 4, 2015 10:20
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/a0a848d386762e28d1ba to your computer and use it in GitHub Desktop.
Save mdix/a0a848d386762e28d1ba to your computer and use it in GitHub Desktop.
stampit access private from public
myStamp =
stampit().
init(() => {
this.privateMethod = () => {
// private method
}
})
.methods({
publicMethod: () => {
// consume privateMethod here
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment