From f5727d6383855e183659ebd9c1471f4fa8787b78 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 22 Jan 2009 12:15:32 -0800 Subject: [PATCH] An editor's iframe and div now blindUp in unision when the note is hidden/shutdown. --- static/js/Editor.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/Editor.js b/static/js/Editor.js index e9ba83a..bc94a1e 100644 --- a/static/js/Editor.js +++ b/static/js/Editor.js @@ -1081,10 +1081,14 @@ Editor.prototype.shutdown = function( event ) { var div = this.div; this.div = null; - blindUp( iframe || div, options = { "duration": 0.25, afterFinish: function () { + blindUp( div, options = { "duration": 0.25, afterFinish: function () { try { removeElement( note_controls ); removeElement( div ); + } catch ( e ) { } + } } ); + blindUp( iframe, options = { "duration": 0.25, afterFinish: function () { + try { if ( iframe ) addElementClass( iframe, "invisible" ); } catch ( e ) { }