mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-23 07:22:55 +02:00
Add notice of deprecation
This commit is contained in:
@@ -61,7 +61,7 @@ function inline(value) {
|
||||
function key(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 Document) return value.key
|
||||
if (value instanceof Inline) return value.key
|
||||
|
Reference in New Issue
Block a user