From c791881c87f494b2f83a06f5d20216915a37cd40 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Wed, 31 Aug 2016 16:31:49 +0100 Subject: [PATCH] fix lint --- lib/models/room.js | 3 ++- lib/webrtc/call.js | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/models/room.js b/lib/models/room.js index 200eb87fb..972f484d4 100644 --- a/lib/models/room.js +++ b/lib/models/room.js @@ -1509,7 +1509,8 @@ module.exports = Room; * added to the end of the live timeline * * @example - * matrixClient.on("Room.timeline", function(event, room, toStartOfTimeline, removed, data){ + * matrixClient.on("Room.timeline", + * function(event, room, toStartOfTimeline, removed, data) { * if (!toStartOfTimeline && data.liveEvent) { * var messageToAppend = room.timeline.[room.timeline.length - 1]; * } diff --git a/lib/webrtc/call.js b/lib/webrtc/call.js index abb4ab33f..b2dc46307 100644 --- a/lib/webrtc/call.js +++ b/lib/webrtc/call.js @@ -74,6 +74,10 @@ MatrixCall.ERR_LOCAL_OFFER_FAILED = "local_offer_failed"; */ MatrixCall.ERR_NO_USER_MEDIA = "no_user_media"; +/** + * Lookup from opaque queue ID to a promise for media element operations that + * need to be serialised into a given queue + */ MatrixCall.mediaPromises = {}; utils.inherits(MatrixCall, EventEmitter); @@ -990,7 +994,7 @@ var _tryPlayRemoteAudioStream = function(self) { setTimeout(function() { var ael = self.getRemoteAudioElement(); if (ael.play) { - self.playElement(vel, "remoteAudio"); + self.playElement(ael, "remoteAudio"); } // OpenWebRTC does not support oniceconnectionstatechange yet if (self.webRtc.isOpenWebRTC()) {