1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 02:49:56 +02:00

Revert "Memoize Schema.__validate"

It's useless because we already compare with previous node in normalize

This reverts commit 6f49c3fcbc.
This commit is contained in:
Soreine
2016-11-01 15:51:21 +01:00
parent 6f49c3fcbc
commit 17fa721801

View File

@@ -1,7 +1,6 @@
import React from 'react'
import isReactComponent from '../utils/is-react-component'
import memoize from '../utils/memoize'
import typeOf from 'type-of'
import { Record } from 'immutable'
@@ -122,6 +121,7 @@ class Schema extends new Record(DEFAULTS) {
value,
}
}
}
/**
@@ -222,14 +222,6 @@ function normalizeMarkComponent(render) {
}
}
/**
* Memoize validation for a schema
*/
memoize(Schema.prototype, [
'__validate'
])
/**
* Export.
*