[Prototype-core] Re: More useful Element.clone method

2009-08-28 Thread watermark86
I'm not proposing that the Element.clone have this functionality by default (I agree there are scenarios when you wouldn't want the event handlers and the storage item(s) copied.) What if Element.clone where to be given another one or two arguments (ie. Element.clone(deepClone, cloneStorage, clon

[Prototype-core] Re: More useful Element.clone method

2009-08-28 Thread T.J. Crowder
Hi, FWIW, I don't think this is should be core. It may be useful in the scenario in which you're using it, which is great, but I see too many dangers involved in copying event handlers from one element to another. I mentioned one of them here.[1] [1] http://groups.google.com/group/prototype-scr