Could you use stopObserving() to stop the event listeners prior to
cloning the nodes?
-- Dash --
Miguel wrote:
> Hi Kjell,
>
> I had the same problem on IE6 and IE7.
> The only solution I found that worked was to delete the elements and
> recreate them.
> It's quite sad to use this kind of (ugly and embarrassing) hack, so if
> anyone has a better solution to it I would be very grateful :-)
>
> Miguel
>
>
> Kjell Bublitz wrote:
>
>> I have in window.onload the following
>>
>> Event.observe('image', 'click', function(){ new ImageLoad($('image').id) })
>>
>> In the ImageLoad class i clone $('image') with
>>
>> var clone = $('image').cloneNode(true);
>>
>> and then insert it somewhere else
>>
>> $('oldimage').appendChild(clone);
>>
>> In IE7 (and maybe other IEs) the 'click' Event is still active on the
>> clone. Even with changed ID, changed size, everything ...
>>
>> I tried to stopObserve with the same parameters, aswell as using the
>> clone-variable, before and after clone modification, but nothing seems
>> to work.
>>
>> What can i do?
>>
>>
>>
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---