Ferdinand Beyer wrote:
> What I would really like to see in the standard library is that jQuery
> objects can be passed to the $() function to obtain a copy:
> 
> var $a = $('some.query');
> var $b = $($a);
> 
> $b.filter('some.criteria'); // Does not affect $a
> 
> What do you think about that?

Could .end()[1] do what you're after?  I suppose in your example it 
would be:
$('some.query').doSomething()
                .filter('some.criteria')
                .doSomethingElse()
                .end();

There are circumstances when a method of cloning would be useful, though 
I'm not sure of an "official" method.

[1] http://www.visualjquery.com/#base_dom_end


Best wishes,
Dave Cardwell ~ http://davecardwell.co.uk/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to