I am working with a jQuery plugin that has the following snippet:
$(el).siblings( panelSelector )[(effect || activationEffect)](((effect == "show")?activationEffectSpeed:false),function(){ .. some stuff .. });
My concern is not what it does in the context of the plugin, but more about how it works.
I understand that we first select the siblings of the clicked element, then I believe that we check which of the two, effect
or activationEffect
matters, I start to get lost there. It seems like the function is a callback, but if I don't understand what the callback contains.
source share