Changeset 531


Ignore:
Timestamp:
07/22/06 10:19:41 (13 years ago)
Author:
mokhet
Message:

ticket #30 : fix IE memory leak for HTMLArea._loadback() by releasing script.onload once called

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r527 r531  
    64516451HTMLArea._loadback = function(U, C, O, B) 
    64526452{ 
     6453  var T = HTMLArea.is_ie ? "onreadystatechange" : "onload"; 
    64536454  var S = document.createElement("script"); 
    64546455  S.type = "text/javascript"; 
     
    64566457  if ( C ) 
    64576458  { 
    6458     S[HTMLArea.is_ie ? "onreadystatechange" : "onload"] = function() 
     6459    S[T] = function() 
    64596460    { 
    64606461      if ( HTMLArea.is_ie && ! ( /loaded|complete/.test(window.event.srcElement.readyState) ) ) 
     
    64636464      } 
    64646465      C.call(O ? O : this, B); 
     6466      S[T] = null; 
    64656467    }; 
    64666468  } 
Note: See TracChangeset for help on using the changeset viewer.