F
F
flafy42019-11-02 13:36:19
JavaScript
flafy4, 2019-11-02 13:36:19

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

1 answer(s)
A
Alexey Yarkov, 2019-11-02
@flafy4

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 question

Ask a Question

731 491 924 answers to any question