Someone who didn't understand jQuery's destructiveness might have done something like that by accident (cached a jQuery object, used a destructive operation, and then reused the cached object under the assumption that it wasn't destructive. It might not matter, or someone in this situation might have worked around the problem in weird ways that would have reprecussions.

-- Yehuda

On 10/26/06, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote:
Hi folks,

I'd really like to see John's modifications to pushStack included in the jQuery core. Details here: http://www.nabble.com/Non-Destructive-jQuery-tf2482924.html

I'm actually wondering if that modification would break any existing code, as end() works like before. I guess the only situation is in scenarios like this:

var jq = $();
var jq2 = jq.destructiveOperation ();
var jq3 = jq.anotherDestructiveOperation();

With the non-destructive pushStack implementation, this would give a different result. Is someone actually using such code?

I think this modification is very important to improve the overall jQuery...

--
Jörn Zaefferer

http://bassistance.de
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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



--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to