From a2e1a6ca8f2eeef42d41e05ed3378a49e3ba3c49 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 16 Feb 2018 10:59:44 +0000 Subject: [PATCH] jsdoc doesn't like that --- src/models/room-state.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/models/room-state.js b/src/models/room-state.js index a4116e922..b11f2771c 100644 --- a/src/models/room-state.js +++ b/src/models/room-state.js @@ -16,6 +16,14 @@ limitations under the License. "use strict"; /** * @module models/room-state + */ +const EventEmitter = require("events").EventEmitter; + +const utils = require("../utils"); +const RoomMember = require("./room-member"); + +/** + * Construct room state. * * Room State represents the state of the room at a given point. * It can be mutated by adding state events to it. @@ -34,14 +42,7 @@ limitations under the License. * will still have his old display name. Calling getSentinelMember again * after the display name change will return a new RoomMember object * with Bob's new display name. - */ -const EventEmitter = require("events").EventEmitter; - -const utils = require("../utils"); -const RoomMember = require("./room-member"); - -/** - * Construct room state. + * * @constructor * @param {?string} roomId Optional. The ID of the room which has this state. * If none is specified it just tracks paginationTokens, useful for notifTimelineSet