mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-26 16:44:22 +02:00
remove old prevState
logic from transforms
This commit is contained in:
@@ -58,7 +58,7 @@ class State extends new Record(DEFAULTS) {
|
|||||||
|
|
||||||
const state = new State({ document, selection })
|
const state = new State({ document, selection })
|
||||||
|
|
||||||
return state.transform({ normalized: false })
|
return state.transform()
|
||||||
.normalize(SCHEMA)
|
.normalize(SCHEMA)
|
||||||
.apply({ save: false })
|
.apply({ save: false })
|
||||||
}
|
}
|
||||||
|
@@ -29,7 +29,6 @@ class Transform {
|
|||||||
constructor(properties) {
|
constructor(properties) {
|
||||||
const { state, normalized = true } = properties
|
const { state, normalized = true } = properties
|
||||||
this.state = state
|
this.state = state
|
||||||
this.prevState = normalized ? state : null
|
|
||||||
this.operations = []
|
this.operations = []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user