Browse Source

Another check to make sure hot spot div exists before deleting it (#702).

pull/707/head
Matthew Petroff 5 years ago
parent
commit
34cb1a409e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/js/pannellum.js

+ 1
- 1
src/js/pannellum.js View File

@@ -1785,7 +1785,7 @@ function destroyHotSpots() {
for (var i = 0; i < hs.length; i++) {
var current = hs[i].div;
if (current) {
while(current.parentNode != renderContainer) {
while (current.parentNode && current.parentNode != renderContainer) {
current = current.parentNode;
}
renderContainer.removeChild(current);


Loading…
Cancel
Save