Answer the question
In order to leave comments, you need to log in
How is such a structure organized?
Hi everybody! In what direction to dig in order to understand how such a structure with "inheritance" of the show function is organized? I tried to look in the sources on the git, I didn’t really understand anything as a beginner. Thanks in advance! UIkit.switcher(element).show(index);
ps Just do not need answers in the style of Google to help, why do you need it - learn the basics, etc. etc.
Answer the question
In order to leave comments, you need to log in
From the switcher method, return an object with the show method.
https://learn.javascript.ru/task/chain-calls
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question