Changeset 546
- Timestamp:
- 2007-07-26 01:17:00 (3 years ago)
- Location:
- FCKeditor/trunk/editor/_source
- Files:
-
- 2 modified
-
classes/fckiecleanup.js (modified) (1 diff)
-
fckeditorapi.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/classes/fckiecleanup.js
r132 r546 44 44 function FCKIECleanup_Cleanup() 45 45 { 46 if ( !this._FCKCleanupObj )46 if ( !this._FCKCleanupObj || !window.FCKUnloadFlag ) 47 47 return ; 48 48 -
FCKeditor/trunk/editor/_source/fckeditorapi.js
r173 r546 157 157 function FCKeditorAPI_Cleanup() 158 158 { 159 if ( ! window.FCKUnloadFlag ) 160 return ; 159 161 delete FCKeditorAPI.__Instances[ FCK.Name ] ; 160 162 } 163 function FCKeditorAPI_ConfirmCleanup() 164 { 165 window.FCKUnloadFlag = true ; 166 } 161 167 FCKTools.AddEventListener( window, 'unload', FCKeditorAPI_Cleanup ) ; 168 FCKTools.AddEventListener( window, 'beforeunload', FCKeditorAPI_ConfirmCleanup) ;