Преглед на файлове

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

Piotrek Koszuliński преди 8 години
родител
ревизия
09a4199d3b
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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;