Why is this javascript a memory leak -
can me figure out why memory leak, perhaps circular reference, , can prevent leaking?
//this function first expands iframe fill available space //and expands div container of grid fill available space //only required ie7 function setiframeheight() { if ($telerik.isie7) { var h = document.documentelement.clientheight; h -= 34; var frame = document.getelementbyid('ifworkspace'); frame.style.height = h + "px"; var fc = frame.contentdocument || frame.contentwindow.document; var dg = fc.getelementbyid("ctl00_maincontent_grdsummary_griddata"); if (dg != null) { dg.style.height = "100%"; } } } //window events window.onload = setiframeheight;
Comments
Post a Comment