From 6a7ba1346fd9564080b7d102b10181363aa45c6d Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Thu, 17 Nov 2016 18:00:50 -0800 Subject: [PATCH] fix missing warning import --- src/utils/normalize.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/normalize.js b/src/utils/normalize.js index 78953638d..b8fa5467a 100644 --- a/src/utils/normalize.js +++ b/src/utils/normalize.js @@ -6,7 +6,7 @@ import Data from '../models/data' import Mark from '../models/mark' import Selection from '../models/selection' import Text from '../models/text' -import warning from './warning' +import warn from './warn' import typeOf from 'type-of' /** @@ -59,7 +59,7 @@ function inline(value) { function key(value) { if (typeOf(value) == 'string') return value - warning('Deprecation: Passing a node instead of a key to a method accepting a key can reduce performances') + warn('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