From f0a7fcf02c8851124fad7c437e23f51b1e8a3f40 Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Sun, 29 Oct 2017 12:45:40 -0400 Subject: [PATCH] Fix bug related to removing hot spots. --- src/js/pannellum.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/pannellum.js b/src/js/pannellum.js index fbfede2..27d2cdf 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -1736,7 +1736,7 @@ function createHotSpots() { } /** - * Destroys currently create hot spot elements. + * Destroys currently created hot spot elements. * @private */ function destroyHotSpots() { @@ -1750,7 +1750,7 @@ function destroyHotSpots() { current = current.parentNode; } renderContainer.removeChild(current); - delete hs.div; + delete hs[i].div; } } }