mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-07 07:52:23 +00:00
Fix order of args
This commit is contained in:
parent
e2bb6dcecb
commit
a022f83cce
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ define [
|
||||||
|
|
||||||
_joinDoc: (callback = (error) ->) ->
|
_joinDoc: (callback = (error) ->) ->
|
||||||
if @doc?
|
if @doc?
|
||||||
@ide.socket.emit 'joinDoc', @doc_id, { encodeRanges: true }, @doc.getVersion(), (error, docLines, version, updates, ranges) =>
|
@ide.socket.emit 'joinDoc', @doc_id, @doc.getVersion(), { encodeRanges: true }, (error, docLines, version, updates, ranges) =>
|
||||||
return callback(error) if error?
|
return callback(error) if error?
|
||||||
@joined = true
|
@joined = true
|
||||||
@doc.catchUp( updates )
|
@doc.catchUp( updates )
|
||||||
|
|
Loading…
Reference in a new issue