1
0
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:
Ryan Yurkanin
2017-09-05 19:43:24 -04:00
committed by Ian Storm Taylor
parent e72266802d
commit 05ab702e40

View File

@@ -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]
}
}