1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-01 19:22:35 +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 React from 'react'
import isReactComponent from '../utils/is-react-component' import isReactComponent from '../utils/is-react-component'
import memoize from '../utils/memoize'
import typeOf from 'type-of' import typeOf from 'type-of'
import { Record } from 'immutable' import { Record } from 'immutable'
@@ -122,6 +121,7 @@ class Schema extends new Record(DEFAULTS) {
value, value,
} }
} }
} }
/** /**
@@ -222,14 +222,6 @@ function normalizeMarkComponent(render) {
} }
} }
/**
* Memoize validation for a schema
*/
memoize(Schema.prototype, [
'__validate'
])
/** /**
* Export. * Export.
* *