Piotr Jasiun 10 anni fa
parent
commit
799fdb55b8
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      packages/ckeditor5-engine/src/treemodel/range.js

+ 3 - 1
packages/ckeditor5-engine/src/treemodel/range.js

@@ -180,7 +180,9 @@ CKEDITOR.define( [ 'treemodel/position', 'treemodel/positioniterator', 'utils' ]
 		 * all the {@link treeModel.Element}s we enter into when iterating over this range.
 		 *
 		 * Note, that this method will not return a parent node of start position. This is in contrary to {@link treeModel.PositionIterator}
-		 * which will return that node with {@link treeModel.PositionIterator#ELEMENT_LEAVE} type.
+		 * which will return that node with {@link treeModel.PositionIterator#ELEMENT_LEAVE} type. This method, also, returns each
+		 * {@link treeModel.Element} once, while iterator return it twice: for {@link treeModel.PositionIterator#ELEMENT_ENTER} and
+		 * {@link treeModel.PositionIterator#ELEMENT_LEAVE}.
 		 *
 		 * @see {treeModel.PositionIterator}
 		 * @returns {treeModel.Node}