prosemirror-model
Advanced tools
Comparing version 1.13.1 to 1.13.2
@@ -0,1 +1,7 @@ | ||
## 1.13.2 (2021-02-04) | ||
### Bug fixes | ||
`MarkType.removeFromSet` now removes all instances of the mark, not just the first one. | ||
## 1.13.1 (2020-12-20) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-model", | ||
"version": "1.13.1", | ||
"version": "1.13.2", | ||
"description": "ProseMirror's document model", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -62,3 +62,5 @@ import {Fragment} from "./fragment" | ||
// complicated filters, use [`getAttrs`](#model.ParseRule.getAttrs) | ||
// and return false to indicate that the match failed.) | ||
// and return false to indicate that the match failed.) Rules | ||
// matching styles may only produce [marks](#model.ParseRule.mark), | ||
// not nodes. | ||
// | ||
@@ -65,0 +67,0 @@ // priority:: ?number |
@@ -277,5 +277,6 @@ import OrderedMap from "orderedmap" | ||
removeFromSet(set) { | ||
for (var i = 0; i < set.length; i++) | ||
if (set[i].type == this) | ||
return set.slice(0, i).concat(set.slice(i + 1)) | ||
for (var i = 0; i < set.length; i++) if (set[i].type == this) { | ||
set = set.slice(0, i).concat(set.slice(i + 1)) | ||
i-- | ||
} | ||
return set | ||
@@ -282,0 +283,0 @@ } |
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
891676
9177