mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-27 10:04:07 +00: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
|
editorDoc.on 'change', editorListener
|
||||||
|
|
||||||
# Listen for remote ops on the sharejs document
|
|
||||||
docListener = (op) ->
|
|
||||||
suppress = true
|
|
||||||
applyToDoc editorDoc, op
|
|
||||||
suppress = false
|
|
||||||
|
|
||||||
check()
|
|
||||||
|
|
||||||
|
|
||||||
# Horribly inefficient.
|
# Horribly inefficient.
|
||||||
offsetToPos = (offset) ->
|
offsetToPos = (offset) ->
|
||||||
# Again, very inefficient.
|
# Again, very inefficient.
|
||||||
|
@ -154,7 +145,6 @@ window.sharejs.extendDoc 'attach_ace', (editor, keepEditorContents, maxDocLength
|
||||||
check()
|
check()
|
||||||
|
|
||||||
doc.detach_ace = ->
|
doc.detach_ace = ->
|
||||||
doc.removeListener 'remoteop', docListener
|
|
||||||
editorDoc.removeListener 'change', editorListener
|
editorDoc.removeListener 'change', editorListener
|
||||||
delete doc.detach_ace
|
delete doc.detach_ace
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue