prosemirror-model
Advanced tools
Comparing version 1.11.1 to 1.11.2
@@ -0,1 +1,7 @@ | ||
## 1.11.2 (2020-09-12) | ||
### Bug fixes | ||
Fix issue where 1.11.1 uses an array method not available on Internet Explorer. | ||
## 1.11.1 (2020-09-11) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-model", | ||
"version": "1.11.1", | ||
"version": "1.11.2", | ||
"description": "ProseMirror's document model", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -352,2 +352,4 @@ import {Fragment} from "./fragment" | ||
!mark.isInSet(this.activeMarks)) { | ||
let found = findSameTypeInSet(mark, this.activeMarks); | ||
if (found) this.stashMarks.push(found) | ||
this.activeMarks = mark.addToSet(this.activeMarks) | ||
@@ -710,4 +712,4 @@ this.pendingMarks = mark.removeFromSet(this.pendingMarks) | ||
addPendingMark(mark) { | ||
let found = this.top.pendingMarks.findIndex(_mark => _mark.type == mark.type) | ||
if (found > -1) this.top.stashMarks.push(mark) | ||
let found = findSameTypeInSet(mark, this.top.pendingMarks) | ||
if (found) this.top.stashMarks.push(found) | ||
this.top.pendingMarks = mark.addToSet(this.top.pendingMarks) | ||
@@ -787,1 +789,7 @@ } | ||
} | ||
function findSameTypeInSet(mark, set) { | ||
for (let i = 0; i < set.length; i++) { | ||
if (mark.type == set[i].type) return set[i] | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
886082
9129