Ticket #1898: 1898.patch

File 1898.patch, 1.3 KB (added by Martin Kou, 16 years ago)
  • editor/fckdialog.html

     
    2727                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    2828                <meta name="robots" content="noindex, nofollow" />
    2929                <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 
    4530// Domain relaxation logic.
    4631(function()
    4732{
     
    7156        }
    7257})() ;
    7358
     59var 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.
     63function Args()
     64{
     65        return frameElement._DialogArguments ;
     66}
     67
     68function ParentDialog( dialog )
     69{
     70        return dialog ? dialog._ParentDialog : frameElement._ParentDialog ;
     71}
     72
    7473var FCK                         = E.FCK ;
    7574var FCKTools            = E.FCKTools ;
    7675var FCKDomTools         = E.FCKDomTools ;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy