diff options
author | bob <bcz@cs.brown.edu> | 2019-07-30 09:41:08 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-07-30 09:41:08 -0400 |
commit | fe2ae4e235a12198a530672d4db3fdcd167c6e65 (patch) | |
tree | f44fbc2b53eba3eadc51b851600b706c0e451d5a /src/client/DocServer.ts | |
parent | 5591060e868053c8839fcc1de1ae77d4dac361ac (diff) | |
parent | e041988b84553797699a5a232e26e72252460e01 (diff) |
Merge branch 'master' into youtube-api-muhammed
Diffstat (limited to 'src/client/DocServer.ts')
-rw-r--r-- | src/client/DocServer.ts | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/client/DocServer.ts b/src/client/DocServer.ts index 4cea68f69..258acd9cd 100644 --- a/src/client/DocServer.ts +++ b/src/client/DocServer.ts @@ -5,7 +5,6 @@ import { Utils, emptyFunction } from '../Utils'; import { SerializationHelper } from './util/SerializationHelper'; import { RefField } from '../new_fields/RefField'; import { Id, HandleUpdate } from '../new_fields/FieldSymbols'; -import { CurrentUserUtils } from '../server/authentication/models/current_user_utils'; /** * This class encapsulates the transfer and cross-client synchronization of @@ -26,7 +25,6 @@ export namespace DocServer { // this client's distinct GUID created at initialization let GUID: string; // indicates whether or not a document is currently being udpated, and, if so, its id - let updatingId: string | undefined; export function init(protocol: string, hostname: string, port: number, identifier: string) { _cache = {}; @@ -317,9 +315,6 @@ export namespace DocServer { } function _UpdateFieldImpl(id: string, diff: any) { - if (id === updatingId) { - return; - } Utils.Emit(_socket, MessageStore.UpdateField, { id, diff }); } @@ -342,11 +337,7 @@ export namespace DocServer { // extract this Doc's update handler const handler = f[HandleUpdate]; if (handler) { - // set the 'I'm currently updating this Doc' flag - updatingId = id; handler.call(f, diff.diff); - // reset to indicate no ongoing updates - updatingId = undefined; } }; // check the cache for the field |