mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Remove unused listener
This commit is contained in:
parent
e1187f3d8a
commit
c5735a31df
1 changed files with 0 additions and 10 deletions
|
@ -87,15 +87,6 @@ window.sharejs.extendDoc 'attach_ace', (editor, keepEditorContents, maxDocLength
|
|||
|
||||
editorDoc.on 'change', editorListener
|
||||
|
||||
# Listen for remote ops on the sharejs document
|
||||
docListener = (op) ->
|
||||
suppress = true
|
||||
applyToDoc editorDoc, op
|
||||
suppress = false
|
||||
|
||||
check()
|
||||
|
||||
|
||||
# Horribly inefficient.
|
||||
offsetToPos = (offset) ->
|
||||
# Again, very inefficient.
|
||||
|
@ -154,7 +145,6 @@ window.sharejs.extendDoc 'attach_ace', (editor, keepEditorContents, maxDocLength
|
|||
check()
|
||||
|
||||
doc.detach_ace = ->
|
||||
doc.removeListener 'remoteop', docListener
|
||||
editorDoc.removeListener 'change', editorListener
|
||||
delete doc.detach_ace
|
||||
|
||||
|
|
Loading…
Reference in a new issue