Parcourir la source

Extended comment in region.destroy().

Aleksander Nowodzinski il y a 10 ans
Parent
commit
7c7d7dfa7c
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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.