Ticket #1898: 1898_pre.patch
File 1898_pre.patch, 1.9 KB (added by , 17 years ago) |
---|
-
editor/_source/internals/fckdialog.js
189 189 FCK.Focus() ; 190 190 191 191 this.HideMainCover() ; 192 topDialog = null ; 192 193 // Bug #1898: Setting "topDialog = null" directly here causes IE6 to crash. 194 FCKTools.RunFunction( function(){topDialog = null ;}, this, [], topWindow ); 193 195 this.SelectionData = null ; 194 196 } 195 197 }, -
editor/fckdialog.html
27 27 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 28 28 <meta name="robots" content="noindex, nofollow" /> 29 29 <script type="text/javascript"> 30 31 var E = frameElement._DialogArguments.Editor ;32 33 // It seems referencing to frameElement._DialogArguments directly would lead to memory leaks in IE.34 // So let's use functions to access its members instead.35 function Args()36 {37 return frameElement._DialogArguments ;38 }39 40 function ParentDialog( dialog )41 {42 return dialog ? dialog._ParentDialog : frameElement._ParentDialog ;43 }44 45 30 // Domain relaxation logic. 46 31 (function() 47 32 { … … 71 56 } 72 57 })() ; 73 58 59 var E = frameElement._DialogArguments.Editor ; 60 61 // It seems referencing to frameElement._DialogArguments directly would lead to memory leaks in IE. 62 // So let's use functions to access its members instead. 63 function Args() 64 { 65 return frameElement._DialogArguments ; 66 } 67 68 function ParentDialog( dialog ) 69 { 70 return dialog ? dialog._ParentDialog : frameElement._ParentDialog ; 71 } 72 74 73 var FCK = E.FCK ; 75 74 var FCKTools = E.FCKTools ; 76 75 var FCKDomTools = E.FCKDomTools ;