瀏覽代碼

ref(ConnectionIndicator.js) pass icon class as an argument

master
paweldomas 8 年之前
父節點
當前提交
cf931f8a9f
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. 4
    4
      modules/UI/videolayout/ConnectionIndicator.js

+ 4
- 4
modules/UI/videolayout/ConnectionIndicator.js 查看文件

245
 };
245
 };
246
 
246
 
247
 
247
 
248
-function createIcon(classes) {
248
+function createIcon(classes, iconClass) {
249
     var icon = document.createElement("span");
249
     var icon = document.createElement("span");
250
     for(var i in classes) {
250
     for(var i in classes) {
251
         icon.classList.add(classes[i]);
251
         icon.classList.add(classes[i]);
252
     }
252
     }
253
     icon.appendChild(
253
     icon.appendChild(
254
-        document.createElement("i")).classList.add("icon-connection");
254
+        document.createElement("i")).classList.add(iconClass);
255
     return icon;
255
     return icon;
256
 }
256
 }
257
 
257
 
282
     }.bind(this);
282
     }.bind(this);
283
 
283
 
284
     this.emptyIcon = this.connectionIndicatorContainer.appendChild(
284
     this.emptyIcon = this.connectionIndicatorContainer.appendChild(
285
-        createIcon(["connection", "connection_empty"]));
285
+        createIcon(["connection", "connection_empty"], "icon-connection"));
286
     this.fullIcon = this.connectionIndicatorContainer.appendChild(
286
     this.fullIcon = this.connectionIndicatorContainer.appendChild(
287
-        createIcon(["connection", "connection_full"]));
287
+        createIcon(["connection", "connection_full"], "icon-connection"));
288
 };
288
 };
289
 
289
 
290
 /**
290
 /**

Loading…
取消
儲存