chaining of mixins

36 views
Skip to first unread message

Jorge Sanchez

unread,
Jan 19, 2015, 3:12:24 PM1/19/15
to twitter...@googlegroups.com
Hello,

is it possible to chain mixins ? I need to define before function which would be applied to multiple mixins. 

Thanks,

Jorge

Jorge Sanchez

unread,
Jan 19, 2015, 3:14:41 PM1/19/15
to twitter...@googlegroups.com
According to the documentation it should be possible:

Mixin API

  • In Flight, a mixin is a function which assigns properties to a target object (represented by the this keyword).
  • A typical mixin defines a set of functionality that will be useful to more than one component.
  • One mixin can be applied to any number of Component definitions.
  • One Component definition can have any number of mixins applied to it.
  • Each Component defines a core mixin within its own module.
  • A mixin can itself have mixins applied to it.


Regards,

Jorge

Dne pondělí 19. ledna 2015 14:12:24 UTC-6 Jorge Sanchez napsal(a):

Jorge Sanchez

unread,
Jan 19, 2015, 5:43:35 PM1/19/15
to twitter...@googlegroups.com
Well, 
it suppose to be as followed. Is there a way how to pass arguments to mixin mixed to mixin ? 
  flight.compose.mixin(this, [withPositioning]);


Dne pondělí 19. ledna 2015 14:12:24 UTC-6 Jorge Sanchez napsal(a):
Hello,
Reply all
Reply to author
Forward
0 new messages