From 86f1d287d7d6ea569ab8257ff359eb86d9bb98bc Mon Sep 17 00:00:00 2001 From: Maxim Voloshin Date: Tue, 25 Oct 2016 20:40:43 +0300 Subject: [PATCH] Fix comments --- modules/UI/videolayout/SmallVideo.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/UI/videolayout/SmallVideo.js b/modules/UI/videolayout/SmallVideo.js index 4f47eb70b..313783afe 100644 --- a/modules/UI/videolayout/SmallVideo.js +++ b/modules/UI/videolayout/SmallVideo.js @@ -555,7 +555,7 @@ SmallVideo.prototype.showRaisedHandIndicator = function (show) { * @param options.content {String} HTML content of the indicator * @param options.tooltip {String} The key that should be passed to tooltip * - * @returns {HTMLElement} the raised hand indicator + * @returns {HTMLElement} DOM represention of the indicator */ SmallVideo.prototype.getIndicatorSpan = function(options) { var indicator = this.container.querySelector('#' + options.id); @@ -570,6 +570,10 @@ SmallVideo.prototype.getIndicatorSpan = function(options) { indicator.innerHTML = options.content; + // This element will be translated by UIUtil.setTooltip and + // that's why it is not translated here. + // Do not translate the same element multiple times in a row + // because it prevents tooltip from disappearing. UIUtil.setTooltip(indicator, options.tooltip, "top"); this.container.appendChild(indicator);