Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11453: document_loaded_fix.diff

File document_loaded_fix.diff, 421 bytes (added by jdalton, 5 months ago)

finally, :)

  • event.js

    old new  
    292292  function fireContentLoadedEvent() { 
    293293    if (document.loaded) return; 
    294294    if (timer) window.clearInterval(timer); 
     295    document.loaded = true; 
    295296    document.fire("dom:loaded"); 
    296     document.loaded = true; 
    297297  } 
    298298   
    299299  if (document.addEventListener) {