Someone should fix jQuery's docs about .add().

Only .pushStack() does reliably what .add() is supposed to do.

But .pushStack() is only used internally.

Nonsense.

Comments

sun’s picture

Status: Active » Closed (won't fix)

Unfortunately, .pushStack() was wrong, and even with the new solution, jQuery gets it wrong.