[jquery-dev] Re: $.fn.add(selector) and context

2009-10-31 Thread Robert Katić
Ticket: http://dev.jquery.com/ticket/5434 On Oct 30, 3:33 pm, John Resig jere...@gmail.com wrote: This seems reasonable, as well. Can you file a ticket? Thanks. --John On Fri, Oct 30, 2009 at 2:06 AM, Robert Katić robert.ka...@gmail.com wrote: Sorry, I posted an old version of code. Here

[jquery-dev] Re: $.fn.add(selector) and context

2009-10-30 Thread Robert Katić
Sorry, I posted an old version of code. Here the new one: jQuery.fn.add = function( selector, context ) { return this.pushStack( jQuery.unique( jQuery.merge( this.get(), typeof selector === string ? jQuery( selector, context || this.context

Re: [jquery-dev] Re: $.fn.add(selector) and context

2009-10-30 Thread John Resig
This seems reasonable, as well. Can you file a ticket? Thanks. --John On Fri, Oct 30, 2009 at 2:06 AM, Robert Katić robert.ka...@gmail.com wrote: Sorry, I posted an old version of code. Here the new one: jQuery.fn.add = function( selector, context ) {    return this.pushStack(

Re: [jquery-dev] Re: $.fn.add(selector) and context

2009-10-30 Thread Scott Sauyet
       || this.context (this.context.ownerDocument || this.context) There's something -- let's say redundant -- about this line. :-) -- Scott (a (b || a)) == a -- You received this message because you are subscribed to the Google Groups jQuery Development group. To post to this group,

Re: [jquery-dev] Re: $.fn.add(selector) and context

2009-10-30 Thread Scott Sauyet
On Fri, Oct 30, 2009 at 10:34 AM, Scott Sauyet scott.sau...@gmail.com wrote: There's something -- let's say redundant -- about this line.  :-) Ignore me. Brain fart. -- Scott -- You received this message because you are subscribed to the Google Groups jQuery Development group. To post to