|
|
@@ -53,7 +53,7 @@ export default class Range {
|
|
|
*
|
|
|
* @returns {Iterable.<module:engine/model/treewalker~TreeWalkerValue>}
|
|
|
*/
|
|
|
- *[ Symbol.iterator ]() {
|
|
|
+ * [ Symbol.iterator ]() {
|
|
|
yield* new TreeWalker( { boundaries: this, ignoreElementEnd: true } );
|
|
|
}
|
|
|
|
|
|
@@ -322,7 +322,7 @@ export default class Range {
|
|
|
* @param {Object} options Object with configuration options. See {@link module:engine/model/treewalker~TreeWalker}.
|
|
|
* @returns {Iterable.<module:engine/model/item~Item>}
|
|
|
*/
|
|
|
- *getItems( options = {} ) {
|
|
|
+ * getItems( options = {} ) {
|
|
|
options.boundaries = this;
|
|
|
options.ignoreElementEnd = true;
|
|
|
|
|
|
@@ -346,7 +346,7 @@ export default class Range {
|
|
|
* @param {Object} options Object with configuration options. See {@link module:engine/model/treewalker~TreeWalker}.
|
|
|
* @returns {Iterable.<module:engine/model/position~Position>}
|
|
|
*/
|
|
|
- *getPositions( options = {} ) {
|
|
|
+ * getPositions( options = {} ) {
|
|
|
options.boundaries = this;
|
|
|
|
|
|
const treeWalker = new TreeWalker( options );
|