luda icon indicating copy to clipboard operation
luda copied to clipboard

Anonymous mixins don't include any defined properties.

Open oatw opened this issue 3 years ago • 0 comments

Version 0.3.3

Describe the bug Anonymous mixins don't include any defined properties.

To Reproduce Steps to reproduce the behavior:

  1. 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.')
  }  
})
  1. 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.

oatw avatar Sep 17 '20 03:09 oatw