Skip to content
Snippets Groups Projects
Commit ab294955 authored by chris's avatar chris Committed by john
Browse files

remove unused code

parent 3383cdd2
No related branches found
No related tags found
No related merge requests found
...@@ -18,12 +18,6 @@ class NotesEditor extends ProseEditor { ...@@ -18,12 +18,6 @@ class NotesEditor extends ProseEditor {
provider.on('noteSelected', this.scrollTo, this) provider.on('noteSelected', this.scrollTo, this)
} }
getInitialState () {
return {
trackChangesView: this.props.trackChangesView
}
}
render ($$) { render ($$) {
const el = $$('div').addClass('sc-notes-editor') const el = $$('div').addClass('sc-notes-editor')
let toolbar = this._renderNotesToolbar($$) let toolbar = this._renderNotesToolbar($$)
...@@ -130,9 +124,10 @@ class NotesEditor extends ProseEditor { ...@@ -130,9 +124,10 @@ class NotesEditor extends ProseEditor {
return this.context.notesProvider return this.context.notesProvider
} }
getSurface () { getInitialState () {
const containerId = this.props.containerId return {
return this.surfaceManager.getSurface(containerId) trackChangesView: this.props.trackChangesView
}
} }
getChildContext () { getChildContext () {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment