Преглед изворни кода

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…
Откажи
Сачувај