prosemirror-old
Advanced tools
Comparing version 0.10.5 to 0.10.6
@@ -50,4 +50,3 @@ "use strict"; | ||
value: function nodesBetween(from, to, f, nodeStart, parent) { | ||
var len = Math.min(this.content.length, to); | ||
for (var i = 0, pos = 0; pos < len; i++) { | ||
for (var i = 0, pos = 0; pos < to && i < this.content.length; i++) { | ||
var child = this.content[i], | ||
@@ -54,0 +53,0 @@ end = pos + child.nodeSize; |
{ | ||
"name": "prosemirror-old", | ||
"version": "0.10.5", | ||
"version": "0.10.6", | ||
"description": "Well-defined WYSIWYG editor (old version)", | ||
@@ -5,0 +5,0 @@ "main": "dist/edit/index.js", |
@@ -25,4 +25,3 @@ const {fragmentToDOM} = require("./to_dom") | ||
nodesBetween(from, to, f, nodeStart, parent) { | ||
let len = Math.min(this.content.length, to) | ||
for (let i = 0, pos = 0; pos < len; i++) { | ||
for (let i = 0, pos = 0; pos < to && i < this.content.length; i++) { | ||
let child = this.content[i], end = pos + child.nodeSize | ||
@@ -29,0 +28,0 @@ if (end > from && f(child, nodeStart + pos, parent, i) !== false && child.content.size) { |
1310129
31071