[dev] [commits] Horde-Hatchery branch master updated.

Jan Schneider jan at horde.org
Mon Mar 2 18:06:58 UTC 2009


Zitat von Michael M Slusarz <slusarz at horde.org>:

> Quoting Jan Schneider <jan at horde.org>:
>
>> Why did you move the event registering back from global scope to
>> onDomLoaded()? I try to keep up with your changes in Kronolith.
>
> On further testing, I was finding that (especially on slower  
> connections), events were being triggered before all libraries were  
> loaded.  i.e. onmouseover events were being triggered on folders,  
> but the DragDrop library may not have been loaded yet, so errors  
> were being thrown.  Events aren't useful prior to the DOM being  
> available in general.
>
> My original idea was to keep all event registration in a single  
> location in the code, but that is not going to be possible.

Well, it is in Kronolith, since there aren't any popup windows, thus  
all js code is one single file, opposed to the DimpCore/DimpBase split  
in IMP. I only have to move the registration back to onDomLoad().  
Thanks for the clarification.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list