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

remove old prevState logic from transforms

This commit is contained in:
Ian Storm Taylor
2016-11-23 09:07:36 -08:00
parent d99f9b6d78
commit 1c396c11d9
2 changed files with 1 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ class State extends new Record(DEFAULTS) {
const state = new State({ document, selection })
return state.transform({ normalized: false })
return state.transform()
.normalize(SCHEMA)
.apply({ save: false })
}

View File

@@ -29,7 +29,6 @@ class Transform {
constructor(properties) {
const { state, normalized = true } = properties
this.state = state
this.prevState = normalized ? state : null
this.operations = []
}