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:
@@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user