Brian wrote:
> Elegant?  Perhaps.
>
> Breaks the Principle of Least Surprise?  Absolutely, unfortunately.
I don't find it to be surprising at all. If you run filter without 
specifying what you want to do with the subset it creates via a 
secondary lambda argument, the stack is modified to allow you to act on 
that subset while retaining the original stack allowing you to return to 
it via an .end() call. If you specify a callback, it is smart enough to 
realize you want to use that callback on the subset and that's all. So 
it doesn't modify the set and the chain continues unmodified.

It makes sense to me but, as with anything, that means nothing for 
anyone else.

-blair

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to