8
0
Quellcode durchsuchen

Docs: Explained surprising code with a comment. [skip ci]

Piotrek Koszuliński vor 8 Jahren
Ursprung
Commit
09a4199d3b
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      packages/ckeditor5-engine/src/view/element.js

+ 2 - 0
packages/ckeditor5-engine/src/view/element.js

@@ -181,6 +181,8 @@ export default class Element extends Node {
 		cloned._customProperties = new Map( this._customProperties );
 
 		// Clone filler offset method.
+		// We can't define this method in a prototype because it's behavior which
+		// is changed by e.g. toWidget() function from ckeditor5-widget. Perhaps this should be one of custom props.
 		cloned.getFillerOffset = this.getFillerOffset;
 
 		return cloned;