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