Ver Fonte

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

Piotrek Koszuliński há 8 anos atrás
pai
commit
09a4199d3b
1 ficheiros alterados com 2 adições e 0 exclusões
  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;