Browse Source

Adds comments for processing nextOnStage.

j8
damencho 9 years ago
parent
commit
955e01a750
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      modules/FollowMe.js

+ 3
- 0
modules/FollowMe.js View File

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

Loading…
Cancel
Save