Joined July 2013
·
Posted to
Dont do $('#foo').get(0), use Plain JS instead
over 1 year
ago
That's exactly the point, some times, its just too comfortable to use jQuery's methods, with all its internal loops and everything that cost performance.
I think it might add a horrible maintenance confusion, as you'll be looking for "var" keyword to know if something is a variable (or reference) or a variable, i think it adds a layer of complication that might be not necessary. And as some guys has said, it should be really slow as your using Globals as your scope, which is not a good thing.