witten
/
luminotes
Archived
1
0
Fork 0

Fix iframe blindUp() call so it doesn't break getSelection() within the iframe.

This commit is contained in:
Dan Helfman 2009-01-22 14:53:46 -08:00
parent 6438d34e97
commit efc452dbfb
1 changed files with 4 additions and 3 deletions

View File

@ -1100,11 +1100,12 @@ Editor.prototype.shutdown = function( event ) {
if ( !iframe )
return;
// overriding afterFinishInternal for the iframe prevents it from being set to "display: none",
// which would break subsequent getSelection() calls
iframe.editor = null;
blindUp( iframe, options = { "duration": 0.25, afterFinish: function () {
blindUp( iframe, options = { "duration": 0.25, afterFinishInternal: function () {
try {
if ( iframe )
addElementClass( iframe, "invisible" );
addElementClass( iframe, "invisible" );
} catch ( e ) { }
} } );
}