Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
'each' loops are triggering mount events when a global mixin is used #2056
Help us to manage our issues by answering the following:
Post the link using one of our bug report templates:
Expected console output:
And I am completely new to github / not even sure what a pull reqest is
it should be
could be wrong though...
feel free to delete the comment if in any way is wrong/comfusing or something not suitable.
This means that for riot tags created in an each loop will use the global mixins exactly like the other tags. In riot the each directive will create a new tag instance for each element in the loop independently if it's an anonymous tag ( tags not registered via
I would recommend to use the named mixins in your case
I believe that since a lot of anomymus tags (and I mean only loops) happen in a tag, the default behavior should be for them to NOT inherit the mixin of the parent tag. Normaly, the mount event for a tag is ment to fire only once in the begining of the lifecyfle of the tag
For animations, (since I cannot find some other possible use for such a feature), it would be better, and make better sense, if it was declared in a way like (adopted your example)
Thank you - and sorry I am not a fluent english speaker :/