Procházet zdrojové kódy

Docs: Improvements in InlineEditor#destroy.

Aleksander Nowodzinski před 8 roky
rodič
revize
3e94b7fe23
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      packages/ckeditor5-editor-inline/src/inline.js

+ 2 - 2
packages/ckeditor5-editor-inline/src/inline.js

@@ -43,8 +43,8 @@ export default class InlineEditor extends StandardEditor {
 	 * @returns {Promise}
 	 */
 	destroy() {
-		// Cache the data, then destroy. There's no way to tell whether model->view
-		// conversion will still work properly after StandardEditor#destroy().
+		// Cache the data, then destroy.
+		// It's safe to assume that the model->view conversion will not work after super.destroy().
 		const data = this.getData();
 
 		return this.ui.destroy()