3 ms·
plucking elements out of the DOM using selectors isn't far away from using global variables in C. But at some point underneath all the abstraction, isn't that
by krapp 13y ago
plucking elements out of the DOM using selectors isn't far away from using global variables in C.
But at some point underneath all the abstraction, isn't that exactly what this has to do to even work?
- joezo 13y agoI don't think that's quite how it works. I took a quick look at the code and it doesn't contain any DOM selectors at all. It uses closures and getters and setters.