diff --git a/CHANGES.txt b/CHANGES.txt index b1cf5a10bc..f6160624cc 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -15,6 +15,7 @@ Bugfixes -------- * Decide is_mathjax based on current language tags (Issue #2205) +* Don't duplicate images in flowr when resizing page (Issue #2202) New in v7.7.4 ============= diff --git a/nikola/data/themes/bootstrap3/assets/js/flowr.plugin.js b/nikola/data/themes/bootstrap3/assets/js/flowr.plugin.js index a6ab900434..732fa3d12e 100644 --- a/nikola/data/themes/bootstrap3/assets/js/flowr.plugin.js +++ b/nikola/data/themes/bootstrap3/assets/js/flowr.plugin.js @@ -180,7 +180,7 @@ } } //utils - // If the resposive var is set to true then listen for resize method + // If the responsive var is set to true then listen for resize method // and prevent resizing from happening twice if responsive is set again during append phase! if (settings.responsive && !$this.data('__responsive')) { $(window).resize(function() { @@ -211,7 +211,7 @@ var currentItem = 0; // Store all the data - var allData = $this.data('data') || []; + var allData = []; for (i = 0; i < data.length; i++) { allData.push(data[i]); }