瀏覽代碼

Docs: Improvements in InlineEditor#destroy.

Aleksander Nowodzinski 8 年之前
父節點
當前提交
3e94b7fe23
共有 1 個文件被更改,包括 2 次插入2 次删除
  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()