From 0db7fe5d463049dec64724ee296ef266ee80a9ac Mon Sep 17 00:00:00 2001 From: Kevin Jahns <kevin.jahns@rwth-aachen.de> Date: Wed, 2 Dec 2015 15:58:22 +0100 Subject: [PATCH] added support for static content, added jigsaw puzzle --- dist | 2 +- src/Transaction.js | 4 ++-- src/y.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist b/dist index 434432a7..c44c8605 160000 --- a/dist +++ b/dist @@ -1 +1 @@ -Subproject commit 434432a742088e4f53aee0230353c18b5e621211 +Subproject commit c44c86054ef1df42d782a67cba1f679207d07ed1 diff --git a/src/Transaction.js b/src/Transaction.js index e78339b0..1c5b6e22 100644 --- a/src/Transaction.js +++ b/src/Transaction.js @@ -560,12 +560,12 @@ module.exports = function (Y/* :any */) { } * getOperation (id/* :any */)/* :Transaction<any> */ { var o = yield* this.os.find(id) - if (o != null || id[0] != '_') { + if (o != null || id[0] !== '_') { return o } else { // need to generate this operation if (this.store._nextUserId == null) { - var typename= id[1].split('_')[0] + var typename = id[1].split('_')[0] this.store._nextUserId = id yield* Y[typename].createType.call(this) delete this.store._nextUserId diff --git a/src/y.js b/src/y.js index 5f9cb162..ab2ce1a8 100644 --- a/src/y.js +++ b/src/y.js @@ -73,7 +73,7 @@ type DbOptions = MemoryOptions | IndexedDBOptions type WebRTCOptions = { name: 'webrtc', room: string -} +} type WebsocketsClientOptions = { name: 'websockets-client', room: string -- GitLab