You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The way Behaviors mixin Views ui.hashes is inconsistent right now.
On the events and trigger hashes, Behaviors mixin view.ui to their own independent ui hash. In callback functions, only the Behavior's ui hash is available.
the only thing... I dislike about the coupling is that ideally behaviors should be "dumb" and not know about your views too much... this encourages coupling but.. I suppose we are already quite far down that hole
I see this as making them less knowledgeable about views because they don't have to know the selectors/structure of the view (which is needed if you're going to use selectors in a separate behavior hash). It does mean views need to know more about the behaviors, but I'd rather have the views knowing about the behaviors than vice-versa.
From my discussion with @samccone on Gitter:
The way Behaviors mixin Views ui.hashes is inconsistent right now.
On the events and trigger hashes, Behaviors mixin
view.ui
to their own independent ui hash. In callback functions, only the Behavior's ui hash is available.So this works.
and this works
but this does not
It would be great to make this behavior more consistent, and either mix in
view.ui
consistently, or ignore it entirely.Related to #2338
The text was updated successfully, but these errors were encountered: