Unelegant Code

Unelegant Code

I'm curious: Are there any pieces of code that use jQuery, right now,
that you feel are unelegant or ugly? (Presumably ones that've already
been optimized to the best of their ability.)
One area of improvement that I was thinking of was something along the lines of:
// ugly
$("#foo").val( $("#bar").val() );
// a bit better
$("#foo").val( $("#bar") );
this would be an easy change, just make .attr() do something like:
if ( arg.jquery )
val = arg.val() || arg.text() || "";
Any other thoughts? I wonder if there are common cases that could be
improved with some simple code additions to core.
--John