Browse Source

Merge 53568ba239 into 8c3c6ca0f6

pull/72/merge
Didac 9 years ago
parent
commit
29520e766b
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/js/pannellum.js

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

@@ -948,7 +948,9 @@ function renderInitCallback() {
oldRenderer.fadeImg.style.opacity = 0;
// Remove image
setTimeout(function() {
renderContainer.removeChild(oldRenderer.fadeImg);
if(oldRenderer && oldRenderer.fadeImg){
renderContainer.removeChild(oldRenderer.fadeImg);
}
oldRenderer = undefined;
}, config.sceneFadeDuration);
}


Loading…
Cancel
Save