Closed optimistiks closed 5 years ago
Bind dispatchTransaction so it is always called with the view instance as this.
dispatchTransaction
this
Prosemirror always calls dispatchTransaction with the current view instance as this. https://github.com/ProseMirror/prosemirror-view/blob/master/src/index.js#L348 It's not happening when using dev-tools due to monkey-patching the dispatchTransaction. This PR fixes it.
Bind
dispatchTransaction
so it is always called with the view instance asthis
.Prosemirror always calls
dispatchTransaction
with the current view instance asthis
. https://github.com/ProseMirror/prosemirror-view/blob/master/src/index.js#L348 It's not happening when using dev-tools due to monkey-patching thedispatchTransaction
. This PR fixes it.