Joined January 2013
·
Posted to
How to make a cool $() selector
over 1 year
ago
drop the loop and use:
this.push.apply(this, document.querySelectorAll(query));
and drop the return too ... there is no need to return this;
in JavaScript, that is what a constructor returns in any case.
Posted to
One line browser notepad
over 1 year
ago
for Safari browser too, base64 needed
data:text/html;base64,PGh0bWwgY29udGVudGVkaXRhYmxlPg==
br
emi420 ... returning
this
in a constructor is not educational, is just wrong understanding/teaching of how a constructor work, sorry