Explorar o código

Remove redundant collection.clear() calls.

Maciej Gołaszewski %!s(int64=7) %!d(string=hai) anos
pai
achega
c508be5af4
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      packages/ckeditor5-engine/src/view/document.js

+ 0 - 1
packages/ckeditor5-engine/src/view/document.js

@@ -126,7 +126,6 @@ export default class Document {
 	 */
 	destroy() {
 		this.roots.map( root => root.destroy() );
-		this.roots.clear();
 		this.stopListening();
 	}