Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
d4n3
on June 24, 2012
|
parent
|
context
|
favorite
| on:
JQuery 1.8b1: what’s new?
I'm not sure that works. getElementsByClassName (and Id and querySelector) returns a NodeList, not an Array, so there's no foreach, you have to convert it to an array first.
MatthewPhillips
on June 24, 2012
[–]
Array.prototype.slice.call(document.getElementsBy....
mark_story
on June 28, 2012
|
parent
[–]
That's also a ton of tying and a lot of code that a minifier can't reduce. I guess its possible, but do you really want to writing such verbose code?
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: