prosemirror-view
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "prosemirror-view", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "ProseMirror's view component", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -512,3 +512,4 @@ function compareObjs(a, b) { | ||
if (mustRebuild) { | ||
let decorations = mapAndGatherRemainingDecorations(children, newLocal ? moveSpans(newLocal, offset) : [], mapping, oldOffset, options) | ||
let decorations = mapAndGatherRemainingDecorations(children, newLocal ? moveSpans(newLocal, offset) : [], mapping, | ||
offset, oldOffset, options) | ||
let built = buildTree(decorations, node, 0, options) | ||
@@ -540,7 +541,7 @@ newLocal = built.local | ||
function mapAndGatherRemainingDecorations(children, decorations, mapping, oldOffset, options) { | ||
function mapAndGatherRemainingDecorations(children, decorations, mapping, offset, oldOffset, options) { | ||
// Gather all decorations from the remaining marked children | ||
function gather(set, oldOffset) { | ||
for (let i = 0; i < set.local.length; i++) { | ||
let mapped = set.local[i].map(mapping, 0, oldOffset) | ||
let mapped = set.local[i].map(mapping, offset, oldOffset) | ||
if (mapped) decorations.push(mapped) | ||
@@ -547,0 +548,0 @@ else if (options.onRemove) options.onRemove(set.local[i].spec) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
685321
8133