Brandon Aaron schrieb:
>> $()
>> .filter()
>> .stuff().to().filtered().nodes()
>> .invert()
>> .stuff().to().remaining().nodes()
>> .end()
>>
>
> invert ... that is so much better than $else or otherwise. I like this
> for an all jQuery method solution.
>
Ok, apart from a different name, that is the same $else method. But what
happens if you do something like this:
$()
.filter()
.filter()
.doStuff()
.invert()
.doOtherStuff()
.invert()
doMoreStuff();
This is very difficult to implement, because the second invert has to
revert (end()) both the filter and the invert operation. Other problems
arise when you want to invert operations done via not() or find() etc.
-- Jörn
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/