瀏覽代碼

Fixes exception on follow me command.

master
yanas 9 年之前
父節點
當前提交
76548f1cd0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      modules/FollowMe.js

+ 2
- 2
modules/FollowMe.js 查看文件

303
         var clickId = null;
303
         var clickId = null;
304
         if(typeof id !== 'undefined' && !VideoLayout.isPinned(id))
304
         if(typeof id !== 'undefined' && !VideoLayout.isPinned(id))
305
             clickId = id;
305
             clickId = id;
306
-        else if (typeof id == 'undefined')
306
+        else if (typeof id == 'undefined' && VideoLayout.getPinnedId())
307
             clickId = VideoLayout.getPinnedId();
307
             clickId = VideoLayout.getPinnedId();
308
 
308
 
309
-        if (clickId !== null)
309
+        if (clickId)
310
             VideoLayout.handleVideoThumbClicked(clickId);
310
             VideoLayout.handleVideoThumbClicked(clickId);
311
     }
311
     }
312
 
312
 

Loading…
取消
儲存