I Vote YES on
$.fn.filter("string",ifCallback,elseCallback) instead of if/else etc.,
with result remaining destructive as is current behaviour.
On 10/3/06, Brian <[EMAIL PROTECTED]> wrote:
I'm not sure I like that. If .filter() is destructive, it should be
destructive all the time. It's less confusing that way. Just my opinion.
:)
>> that is cool, but destructive... is there a non-destructive if
>> alternative available?
>>
>> Or do they just remove the filtered items from the chain, and let the
>> rest of the chain calls deal with else cases?
>
> It's completely non-destructive - that's what makes it great.
>
> .filter( "string" ) // destructive
> .fitler( "string", function ) // non-destructive
>
> --John
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
--
Reach1to1 Communications
http://www.reach1to1.com
[EMAIL PROTECTED]
98201-94408
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
