From 592e6bac988abb55cdb22cb93250ba560e29f4c1 Mon Sep 17 00:00:00 2001 From: Daniel Naber Date: Wed, 17 Dec 2014 14:04:13 +0100 Subject: [PATCH] add missing break statements --- src/js/pannellum.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/js/pannellum.js b/src/js/pannellum.js index 6f04058..d388a6b 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -866,6 +866,7 @@ function processOptions() { // Show loading box document.getElementById('load_box').style.display = 'inline'; } + //fallthrough case 'popoutautoload': // Hide load button document.getElementById('load_button').style.display = 'none'; @@ -887,7 +888,8 @@ function processOptions() { case 'header': // Add contents to header document.getElementsByTagName('head')[0].innerHTML += config[key]; - + break; + case 'showZoomCtrl': if (config[key]) { // Show zoom controls @@ -896,6 +898,7 @@ function processOptions() { // Hide zoom controls document.getElementById('zoomcontrols').style.display = 'none'; } + break; case 'showFullscreenCtrl': if (config[key]) { @@ -905,6 +908,7 @@ function processOptions() { // Hide fullscreen control document.getElementById('fullwindowtoggle_button').style.display = 'none'; } + break; } } }