luda
luda copied to clipboard
Anonymous mixins don't include any defined properties.
Version 0.3.3
Describe the bug Anonymous mixins don't include any defined properties.
To Reproduce Steps to reproduce the behavior:
- Define an anonymous mixin as the below code:
let toggleable = luda.mixin({
toggleableCreate: function(){
console.log('creating a instance.')
},
toggleableActivate: function(){
console.log('activate a instance.')
}
})
- Try getting all properties in the defined mixin:
// returns {}
toggleable.all()
Expected behavior An object with all the defined properties should be returned.
What is Actually Happening An object without any defined properties is returned.