Răsfoiți Sursa

Extended comment in region.destroy().

Aleksander Nowodzinski 10 ani în urmă
părinte
comite
7c7d7dfa7c
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      packages/ckeditor5-engine/src/ui/region.js

+ 2 - 1
packages/ckeditor5-engine/src/ui/region.js

@@ -44,7 +44,8 @@ CKEDITOR.define( [ 'collection', 'model' ], function( Collection, Model ) {
 		}
 
 		destroy() {
-			// Drop the reference to HTMLElement.
+			// Drop the reference to HTMLElement but don't remove it from
+			// DOM as comes as a parameter and could be a part of existing View.
 			this.el = null;
 
 			// Remove and destroy views.