Mixins
Learn how to create and apply mixins
Overview
Creating a Mixin
const {Mixin} = require ('@onehilltech/blueprint');
const Events = Mixin.create ({
on (name, method) {
// ...
},
once (name, method) {
// ...
}
emit (name, ...args) {
// ...
}
});Using a Mixin
Applying Mixin to Class Definition
Applying Mixin to Object Instance
Last updated