Although, going back through his code - I really like what he did. He made it such that you no longer had to use anonymous function wrappers - which I really like. It'd be really cool to be able to do:
$("#foo") .find("div") .click() .filter(".someclass") .addClass("test") .else() .addClass("someclass") .end() .end(); It looks like it also needs to be ported to 1.0.1. The code is here, for reference: http://dmlair.com/jquery/jqIfElse/ --John On 9/30/06, John Resig <[EMAIL PROTECTED]> wrote: > > Well done, Jörn! > > > > It makes me remember the work of John Klinger: > > http://jquery.com/discuss/2006-July/#7292 > > It reminded me of that too. I kind of like the simplicity of this > solution. Doing a chainable .else() like what John K did is > fundamentally "really hard". > > --John > -- John Resig http://ejohn.org/ [EMAIL PROTECTED] _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/