Ver código fonte

fix jshint issues

j8
isymchych 9 anos atrás
pai
commit
401e5e7ae0

+ 0
- 7
.jshintignore Ver arquivo

@@ -2,10 +2,3 @@ node_modules
2 2
 libs
3 3
 debian
4 4
 analytics.js
5
-lib-jitsi-meet.js
6
-
7
-modules/xmpp/strophe.emuc.js
8
-modules/UI/prezi/Prezi.js
9
-modules/RTC/adapter.screenshare.js
10
-modules/statistics/*
11
-modules/UI/videolayout/*

+ 2
- 2
modules/UI/UI.js Ver arquivo

@@ -620,8 +620,8 @@ UI.getRemoteVideoType = function (jid) {
620 620
     return VideoLayout.getRemoteVideoType(jid);
621 621
 };
622 622
 
623
-UI.connectionIndicatorShowMore = function(jid) {
624
-    return VideoLayout.showMore(jid);
623
+UI.connectionIndicatorShowMore = function(id) {
624
+    VideoLayout.showMore(id);
625 625
 };
626 626
 
627 627
 // FIXME check if someone user this

+ 1
- 1
modules/UI/videolayout/LocalVideo.js Ver arquivo

@@ -1,4 +1,4 @@
1
-/* global $, interfaceConfig, APP */
1
+/* global $, interfaceConfig, APP, JitsiMeetJS */
2 2
 import ConnectionIndicator from "./ConnectionIndicator";
3 3
 import UIUtil from "../util/UIUtil";
4 4
 import UIEvents from "../../../service/UI/UIEvents";

+ 2
- 1
modules/UI/videolayout/RemoteVideo.js Ver arquivo

@@ -253,7 +253,8 @@ RemoteVideo.prototype.addRemoteStreamElement = function (stream) {
253 253
     // calling attach will show it back
254 254
     $(streamElement).hide();
255 255
 
256
-    // If the container is currently visible we attach the stream to the element.
256
+    // If the container is currently visible
257
+    // we attach the stream to the element.
257 258
     if (!isVideo || (this.container.offsetParent !== null && isVideo)) {
258 259
         this.waitForPlayback(streamElement, stream);
259 260
 

+ 1
- 1
modules/UI/videolayout/SmallVideo.js Ver arquivo

@@ -1,4 +1,4 @@
1
-/* global $, APP, require */
1
+/* global $, APP, JitsiMeetJS */
2 2
 /* jshint -W101 */
3 3
 import Avatar from "../avatar/Avatar";
4 4
 import UIUtil from "../util/UIUtil";

+ 4
- 4
modules/UI/videolayout/VideoLayout.js Ver arquivo

@@ -819,15 +819,15 @@ var VideoLayout = {
819 819
         }
820 820
     },
821 821
 
822
-    showMore (jid) {
823
-        if (jid === 'local') {
822
+    showMore (id) {
823
+        if (id === 'local') {
824 824
             localVideoThumbnail.connectionIndicator.showMore();
825 825
         } else {
826
-            var remoteVideo = remoteVideos[Strophe.getResourceFromJid(jid)];
826
+            let remoteVideo = remoteVideos[id];
827 827
             if (remoteVideo) {
828 828
                 remoteVideo.connectionIndicator.showMore();
829 829
             } else {
830
-                console.info("Error - no remote video for jid: " + jid);
830
+                console.info("Error - no remote video for id: " + id);
831 831
             }
832 832
         }
833 833
     },

Carregando…
Cancelar
Salvar