Joined January 2013
·

Andrea Giammarchi

San Francisco
·
·

Posted to How to make a cool $() selector over 1 year ago

emi420 ... returning this in a constructor is not educational, is just wrong understanding/teaching of how a constructor work, sorry

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

Achievements
1 Karma
0 Total ProTip Views
Interests & Skills