1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-23 15:32:59 +02:00

Add notice of deprecation

This commit is contained in:
Samy Pesse
2016-11-03 00:42:43 +01:00
parent 25959c1e4e
commit 5627447a21

View File

@@ -61,7 +61,7 @@ function inline(value) {
function key(value) { function key(value) {
if (typeOf(value) == 'string') return value if (typeOf(value) == 'string') return value
warning('Passing a node instead of a key to a method accepting a key can reduce performances') warning('Deprecation: Passing a node instead of a key to a method accepting a key can reduce performances')
if (value instanceof Block) return value.key if (value instanceof Block) return value.key
if (value instanceof Document) return value.key if (value instanceof Document) return value.key
if (value instanceof Inline) return value.key if (value instanceof Inline) return value.key