3 ms·
That's manual iteration even if it's done via HoF. Many of jQuery's operations implicitly apply to the entire nodeset regardless of the nodeset's arity.
by masklinn 8y ago
That's manual iteration even if it's done via HoF.
Many of jQuery's operations implicitly apply to the entire nodeset regardless of the nodeset's arity.
- girvo 8y agoFair point, though for dynamic and large DOMs I dislike having to go and check whether I’m touching more than one element sometimes — not always though, sometimes it great to just $(‘#bleh’).hide() or what have you! Depends really
- masklinn 8y agoThat's completely fair, and there are cases where unknowingly selecting and applying complex operations to many nodes is problematic but I think it's a great baseline/default regardless.