Browse Source

Fix location of comment.

pull/241/merge
Matthew Petroff 8 years ago
parent
commit
9b010e0ab0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/js/pannellum.js

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

@@ -2466,8 +2466,8 @@ this.removeHotSpot = function(hotSpotId) {
return false;
for (var i = 0; i < config.hotSpots.length; i++) {
if (config.hotSpots[i].hasOwnProperty('id') &&
// Delete hot spot DOM elements
config.hotSpots[i].id === hotSpotId) {
// Delete hot spot DOM elements
var current = config.hotSpots[i].div;
while (current.parentNode != renderContainer)
current = current.parentNode;


Loading…
Cancel
Save