Always supply an array to node.mark() #10

Closed
saranrapjs wants to merge 1 commit from fix-null-marks into master
saranrapjs commented 2017-12-13 00:39:04 +01:00 (Migrated from github.com)

This branch fixes a bug where non-marked nodes would needlessly cause a node to be re-created, because node.marksAcross() can return null (but node.mark() expects an array of marks).

This branch fixes a bug where non-marked nodes would needlessly cause a node to be re-created, because `node.marksAcross()` can return null (but `node.mark()` expects an array of marks).
marijnh commented 2017-12-13 09:24:56 +01:00 (Migrated from github.com)

That makes sense, thanks for the patch. Merged as 3489bbe67 and released as prosemirror-state 1.0.2

That makes sense, thanks for the patch. Merged as 3489bbe67 and released as prosemirror-state 1.0.2

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
prosemirror/prosemirror-state!10
No description provided.