瀏覽代碼

Adds comments for processing nextOnStage.

j8
damencho 9 年之前
父節點
當前提交
955e01a750
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      modules/FollowMe.js

+ 3
- 0
modules/FollowMe.js 查看文件

@@ -353,10 +353,13 @@ class FollowMe {
353 353
     _onNextOnStage(id) {
354 354
         var clickId = null;
355 355
         var pin;
356
+        // if there is an id which is not pinned we schedule it for pin only the
357
+        // first time
356 358
         if(typeof id !== 'undefined' && !VideoLayout.isPinned(id)) {
357 359
             clickId = id;
358 360
             pin = true;
359 361
         }
362
+        // if there is no id, but we have a pinned one, let's unpin
360 363
         else if (typeof id == 'undefined' && VideoLayout.getPinnedId()) {
361 364
             clickId = VideoLayout.getPinnedId();
362 365
             pin = false;

Loading…
取消
儲存