drop unreachable code

pull/1/head
ansuz 7 years ago
parent ee6c2097f5
commit 2e00214783

@ -487,16 +487,6 @@ define(['/api/config'], function (ApiConfig) {
CKEDITOR.tools.callFunction(fw._.frameLoadedHandler, _iframe.contentWindow); CKEDITOR.tools.callFunction(fw._.frameLoadedHandler, _iframe.contentWindow);
}, 10); }, 10);
return; return;
// Work around Firefox bug - error prune when called from XUL (http://dev.ckeditor.com/ticket/320),
// defer it thanks to the async nature of this method.
try {
doc.write( data );
} catch ( e ) {
setTimeout( function() {
doc.write( data );
}, 0 );
}
} }
}, },
@ -737,4 +727,4 @@ CKEDITOR.config.disableNativeSpellChecker = true;
* @member CKEDITOR.editor * @member CKEDITOR.editor
* @param {CKEDITOR.editor} editor This editor instance. * @param {CKEDITOR.editor} editor This editor instance.
* @param {CKEDITOR.dom.element} data The element being added. * @param {CKEDITOR.dom.element} data The element being added.
*/ */

Loading…
Cancel
Save