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

remove normalizeDocument transform

This commit is contained in:
Ian Storm Taylor
2016-10-14 17:24:03 -07:00
parent 1443968b83
commit 8213bb089f
2 changed files with 0 additions and 18 deletions

View File

@@ -144,7 +144,6 @@ import {
*/ */
import { import {
normalizeDocument,
normalizeSelection, normalizeSelection,
} from './normalize' } from './normalize'
@@ -286,7 +285,6 @@ export default {
* Normalize. * Normalize.
*/ */
normalizeDocument,
normalizeSelection, normalizeSelection,
} }

View File

@@ -1,20 +1,4 @@
/**
* Normalize the document.
*
* @param {Transform} transform
* @return {Transform}
*/
export function normalizeDocument(transform) {
let { state } = transform
let { document } = state
document = document.normalize()
state = state.merge({ document })
transform.state = state
return transform
}
/** /**
* Normalize the selection. * Normalize the selection.
* *