News for hackers. Stuff that matters.
Re:JQuery implicit loops by thezilch on Friday February 01, 2013 @01:59PM (#5152614)
Chained functions call independently and completely before returning to the next. The css function [0] operates on the "array" this returned by $ using an anonymous function [1] at a call site in the access function [1] [2]; access then returns the object formerly known as this [3]. Chain, rinse, and repeat to your heart's content.

[0] https://github.com/jquery/jquery/blob/master/src/css.js#L102

[1] https://github.com/jquery/jquery/blob/master/src/css.js#L103

[2] https://github.com/jquery/jquery/blob/master/src/core.js#L75...

[3] https://github.com/jquery/jquery/blob/master/src/core.js#L75...

Re:JQuery implicit loops by pixl8ed on Friday February 01, 2013 @02:42PM (#5152936)
Doh -- of course... Many thanks for the explanation & the links!