News for hackers. Stuff that matters.
Re:jQuery 4.1.0 by recursive on Tuesday November 17, 2026 @05:25PM (#50539137)
That's a lot of stuff just for [...nodeList].
Re:jQuery 4.1.0 by chuckadams on Tuesday November 17, 2026 @05:36PM (#50539272)
jQuery predates that syntax, but have fun chaining that even now.
Re:jQuery 4.1.0 by recursive on Tuesday November 17, 2026 @06:45PM (#50539882)
jQuery had a lot of reasons for existing. And now it has less than it used to. I believe that was the point.

You'd probably usually chain that inside the callback. Instead of addClass('foo').hide(), you'd do el.classList.add('foo'); el.hidden = true; or something. It's not 1:1, but also it's not really that big a deal.