Yeah, Mar - I think you're right, and I already thought of that.  I
probably will start using something similar: a function that will run
(but regardless of the collection), with the possibility of returning
a different collection to the chain:

jQuery.fn.extend({
    run: function(fn) {
        var result = fn.call(this);
        return result !== 'undefined' ? result : this;
    }
});

Really, it's a 'define-your-own-inline' jQuery plugin.

It's been fun mucking about with .cond(), though.  Cheers, guys!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to