From cf931f8a9fddc2c31a0f91e415f8b95046182309 Mon Sep 17 00:00:00 2001 From: paweldomas Date: Fri, 16 Sep 2016 14:52:07 -0500 Subject: [PATCH] ref(ConnectionIndicator.js) pass icon class as an argument --- modules/UI/videolayout/ConnectionIndicator.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/UI/videolayout/ConnectionIndicator.js b/modules/UI/videolayout/ConnectionIndicator.js index ff5eb9b61..95273a5cb 100644 --- a/modules/UI/videolayout/ConnectionIndicator.js +++ b/modules/UI/videolayout/ConnectionIndicator.js @@ -245,13 +245,13 @@ ConnectionIndicator.prototype.showMore = function () { }; -function createIcon(classes) { +function createIcon(classes, iconClass) { var icon = document.createElement("span"); for(var i in classes) { icon.classList.add(classes[i]); } icon.appendChild( - document.createElement("i")).classList.add("icon-connection"); + document.createElement("i")).classList.add(iconClass); return icon; } @@ -282,9 +282,9 @@ ConnectionIndicator.prototype.create = function () { }.bind(this); this.emptyIcon = this.connectionIndicatorContainer.appendChild( - createIcon(["connection", "connection_empty"])); + createIcon(["connection", "connection_empty"], "icon-connection")); this.fullIcon = this.connectionIndicatorContainer.appendChild( - createIcon(["connection", "connection_full"])); + createIcon(["connection", "connection_full"], "icon-connection")); }; /**