From 4e556f3730bfc3cdeee52b2d84cff13a14b54786 Mon Sep 17 00:00:00 2001 From: Callum Locke Date: Tue, 17 Dec 2013 14:18:37 +0000 Subject: [PATCH] fix loopers getting emptied when looping videos are disabled --- app/scripts/igv.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/scripts/igv.js b/app/scripts/igv.js index bd5b857..3b108e6 100644 --- a/app/scripts/igv.js +++ b/app/scripts/igv.js @@ -63,11 +63,6 @@ this.$cont = $(options.containerEl); this.playButton = this.$cont.is('[data-igv-playbutton]'); - // Prepare container div - this.$cont.empty().addClass('igv igv--paused'); - if (IGV.debug) - this.$cont.addClass('igv--debug'); - // Set the element whose scroll position to track if (this.options.looper && !this.options.scrollElement) this.options.scrollElement = options.containerEl; @@ -87,6 +82,11 @@ // Set up video if necessary if (!this.options.looper || IGV.enableLoopingVideos) { + // Prepare container div + this.$cont.empty().addClass('igv igv--paused'); + if (IGV.debug) + this.$cont.addClass('igv--debug'); + this.videoEnabled = true; // Create the