public
Description: Prototype JavaScript framework
Homepage: http://prototypejs.org/
Clone URL: git://github.com/sstephenson/prototype.git
Set document.loaded = true before firing dom:loaded custom event.
Mon May 19 13:24:38 -0700 2008
commit  c5f71a6e391fe647d81b4a4fdbcf54b64fbc88a3
tree    564e21bfde740cc5097eddf5806b5e462f77214c
parent  6f47aa4f449f26c681fc307e60498e8a2b32e968
...
348
349
350
351
352
 
353
354
355
...
348
349
350
 
351
352
353
354
355
0
@@ -348,8 +348,8 @@ Object.extend(document, {
0
   function fireContentLoadedEvent() {
0
     if (document.loaded) return;
0
     if (timer) window.clearInterval(timer);
0
-    document.fire("dom:loaded");
0
     document.loaded = true;
0
+    document.fire("dom:loaded");
0
   }
0
   
0
   if (document.addEventListener) {

Comments