You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposal (return statements originally wrong, and no check if index list is empty):
// If existent, returns the index of a video clip that shows a transition
// from the specified configuration. Otherwise returns false.
function indexOfVideoWithSource(configurationIndex) {
var sourceConfigurationIndex, indexOfVideo = false;
$.each(videoIndexesList, function (key, videoIndexes) {
sourceConfigurationIndex = parseInt(key, 10);
if (sourceConfigurationIndex === configurationIndex &&
videoIndexesList[key].length > 0) {
videoIndexes = videoIndexesList[key]; // non-empty
indexOfVideo = anyOwnPropertyValue(videoIndexes); // any is OK
return indexOfVideo;
}
});
return false; // nothing found
}
Note: This issue may not be relevant anymore - check!
The text was updated successfully, but these errors were encountered:
Proposal (return statements originally wrong, and no check if index list is empty):
Note: This issue may not be relevant anymore - check!
The text was updated successfully, but these errors were encountered: