diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2019-09-13 17:11:25 -0400 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-09-13 17:11:25 -0400 |
commit | 3c2b04f16ccfae103e2f3acdd852e337c5f974e1 (patch) | |
tree | 1cf71c5cb93c121963c3b55e5a89c85c6cfadd9d /src/client/views/Main.tsx | |
parent | f110a6cf1cac724a85e1001491e1bddedb8d1ebc (diff) |
added batching, generically
Diffstat (limited to 'src/client/views/Main.tsx')
-rw-r--r-- | src/client/views/Main.tsx | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx index b623cab4e..aa002cee9 100644 --- a/src/client/views/Main.tsx +++ b/src/client/views/Main.tsx @@ -20,14 +20,6 @@ String.prototype.hasNewline = function () { return this.endsWith("\n"); }; -(Array.prototype as any).lastElement = function (this: any[]) { - if (!this.length) { - return undefined; - } - return this[this.length - 1]; -}; - - let swapDocs = async () => { let oldDoc = await Cast(CurrentUserUtils.UserDocument.linkManagerDoc, Doc); // Docs.Prototypes.MainLinkDocument().allLinks = new List<Doc>(); |