Adds comments for processing nextOnStage.

This commit is contained in:
damencho 2016-06-07 16:38:21 -05:00
parent ca62f9bec2
commit 955e01a750
1 changed files with 3 additions and 0 deletions

View File

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