Преглед изворни кода

Remove redundant variables de-referencing.

Maciej Gołaszewski пре 7 година
родитељ
комит
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;
 			} );
 	}