diff --git a/dist b/dist index 434432a742088e4f53aee0230353c18b5e621211..c44c86054ef1df42d782a67cba1f679207d07ed1 160000 --- a/dist +++ b/dist @@ -1 +1 @@ -Subproject commit 434432a742088e4f53aee0230353c18b5e621211 +Subproject commit c44c86054ef1df42d782a67cba1f679207d07ed1 diff --git a/src/Transaction.js b/src/Transaction.js index e78339b048f01c06940667d41413ff25ca08039f..1c5b6e22ddcf2fcaa2e4cd0a0e1166f10c454d51 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 5f9cb16296872c7fda1a401fee7f4d4e0b733dbd..ab2ce1a8878041ff83955b1b9d64903a5bb23b4f 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