瀏覽代碼

fix jshint issues

j8
isymchych 9 年之前
父節點
當前提交
401e5e7ae0

+ 0
- 7
.jshintignore 查看文件

2
 libs
2
 libs
3
 debian
3
 debian
4
 analytics.js
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 查看文件

620
     return VideoLayout.getRemoteVideoType(jid);
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
 // FIXME check if someone user this
627
 // FIXME check if someone user this

+ 1
- 1
modules/UI/videolayout/LocalVideo.js 查看文件

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

+ 2
- 1
modules/UI/videolayout/RemoteVideo.js 查看文件

253
     // calling attach will show it back
253
     // calling attach will show it back
254
     $(streamElement).hide();
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
     if (!isVideo || (this.container.offsetParent !== null && isVideo)) {
258
     if (!isVideo || (this.container.offsetParent !== null && isVideo)) {
258
         this.waitForPlayback(streamElement, stream);
259
         this.waitForPlayback(streamElement, stream);
259
 
260
 

+ 1
- 1
modules/UI/videolayout/SmallVideo.js 查看文件

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

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

819
         }
819
         }
820
     },
820
     },
821
 
821
 
822
-    showMore (jid) {
823
-        if (jid === 'local') {
822
+    showMore (id) {
823
+        if (id === 'local') {
824
             localVideoThumbnail.connectionIndicator.showMore();
824
             localVideoThumbnail.connectionIndicator.showMore();
825
         } else {
825
         } else {
826
-            var remoteVideo = remoteVideos[Strophe.getResourceFromJid(jid)];
826
+            let remoteVideo = remoteVideos[id];
827
             if (remoteVideo) {
827
             if (remoteVideo) {
828
                 remoteVideo.connectionIndicator.showMore();
828
                 remoteVideo.connectionIndicator.showMore();
829
             } else {
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
     },

Loading…
取消
儲存