Explorar el Código

Remove redundant variables de-referencing.

Maciej Gołaszewski hace 7 años
padre
commit
dd2b17d468
Se han modificado 1 ficheros con 0 adiciones y 9 borrados
  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;
 			} );
 	}