Skip to content

Instantly share code, notes, and snippets.

@inabahare
Created July 15, 2023 08:47
Show Gist options
  • Save inabahare/40cf145881f142df8679f023b08b1d25 to your computer and use it in GitHub Desktop.
Save inabahare/40cf145881f142df8679f023b08b1d25 to your computer and use it in GitHub Desktop.
let motionModule = (function () {
function superCoolHelper() {
// todo
}
return {
glideMixin: function(obj) {
obj.glide = function() {
console.log("Gliding on the water");
};
},
flyMixin: function(obj) {
obj.fly = function() {
console.log("Flying, wooosh!");
};
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment