[Proto-Scripty] Re: More useful clone method

2009-08-26 Thread watermark86
Element.observe(dstdecend[i], eventName, r.handler); }); }); } } return newElement; } On Aug 26, 9:43 am, watermark86 wrote: > 1.6.1rc3 added Element.clone (which calls cloneNode). > > On Aug 25, 5:46 pm, Matt Foster wrote: > > > Good

[Proto-Scripty] Re: More useful clone method

2009-08-26 Thread watermark86
gt; > Element doesn't have a clone method.  The native DOM element does have > a cloneNode method though. > > -- > > http://positionabsolute.net > > On Aug 25, 2:15 pm, watermark86 wrote: > > > I'm using 1.6.1rc3 to have access to Element.storage.  I nee

[Proto-Scripty] More useful clone method

2009-08-25 Thread watermark86
I'm using 1.6.1rc3 to have access to Element.storage. I need to write a function that deep clones an element and copies the Element.observe events as well as the Element.Storage items with it. I've managed to write the code that can copy one or the other. The problem comes in when I try to do b