mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-23 23:42:56 +02:00
fixing a breaking change in node/mark properties (#1049)
This commit is contained in:
committed by
Ian Storm Taylor
parent
e72266802d
commit
05ab702e40
@@ -133,9 +133,7 @@ function markProperties(value = {}) {
|
||||
for (const k in value) {
|
||||
if (k == 'data') {
|
||||
if (value[k] !== undefined) ret[k] = Data.create(value[k])
|
||||
} else if (k.startsWith('@@__SLATE')) {
|
||||
return
|
||||
} else {
|
||||
} else if (!k.startsWith('@@__SLATE')) {
|
||||
ret[k] = value[k]
|
||||
}
|
||||
}
|
||||
@@ -168,9 +166,7 @@ function nodeProperties(value = {}) {
|
||||
for (const k in value) {
|
||||
if (k == 'data') {
|
||||
if (value[k] !== undefined) ret[k] = Data.create(value[k])
|
||||
} else if (k.startsWith('@@__SLATE')) {
|
||||
return
|
||||
} else {
|
||||
} else if (!k.startsWith('@@__SLATE')) {
|
||||
ret[k] = value[k]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user