Sfoglia il codice sorgente

Removed EmptyElement description from Element.clone() as EmptyElement has its own clone method.

Szymon Kupś 9 anni fa
parent
commit
06e3202345
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      packages/ckeditor5-engine/src/view/element.js

+ 1 - 1
packages/ckeditor5-engine/src/view/element.js

@@ -139,7 +139,7 @@ export default class Element extends Node {
 			}
 		}
 
-		// ContainerElement, AttributeElement and EmptyElement should be also cloned properly.
+		// ContainerElement and AttributeElement should be also cloned properly.
 		const cloned = new this.constructor( this.name, this._attrs, childrenClone );
 
 		// Classes and styles are cloned separately - this solution is faster than adding them back to attributes and