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