logoalt Hacker News

embedding-shape • today at 8:54 PM • 3 replies • view on HN

Are you talking about method chaining, something that comes from JavaScript (technically the DOM I suppose), not jQuery?


Replies

tyre • today at 8:58 PM

Method chaining is library-specific, a function of methods returning `this`/`self`.

jQuery made the decision to do this, not JavaScript.

kiliancs • today at 8:57 PM

It was not commonplace at the time jQuery was released.

hax0ron3 • today at 9:37 PM

Yes, I'm talking about using JS' method chaining. That's what I mean by "going with a language's features".