8
0
Просмотр исходного кода

Remove redundant variables de-referencing.

Maciej Gołaszewski 7 лет назад
Родитель
Сommit
dd2b17d468
1 измененных файлов с 0 добавлено и 9 удалено
  1. 0 9
      packages/ckeditor5-core/src/editor/editor.js

+ 0 - 9
packages/ckeditor5-core/src/editor/editor.js

@@ -278,15 +278,6 @@ export default class Editor {
 				this.data.destroy();
 				this.editing.destroy();
 				this.keystrokes.destroy();
-
-				// Fail-safe dereference of entities that may hold back reference to the editor - prevent memory leaks #1341
-				this.plugins = null;
-				this.commands = null;
-				this.model = null;
-				this.data = null;
-				this.editing = null;
-				this.keystrokes = null;
-				this.conversion = null;
 			} );
 	}