Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created October 10, 2017 06:08
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 goofmint/ebce7e7c4a01dd8cc1b107a03779bba9 to your computer and use it in GitHub Desktop.
Save goofmint/ebce7e7c4a01dd8cc1b107a03779bba9 to your computer and use it in GitHub Desktop.
var mixin = h5.mixin.createMixin({
set: function(p, v) {
this[p] = v;
},
get: function(p) {
return this[p];
},
times: function(p, i) {
return this[p] * i;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment