From fc57298db0c58e6d35128b5d248f265abbc22f4f Mon Sep 17 00:00:00 2001
From: Thijs Kinkhorst <thijs@kinkhorst.com>
Date: Wed, 29 Jan 2020 09:19:01 +0000
Subject: [PATCH] code quality

---
 modules/core/www/idp/logout-iframe.js | 2 +-
 www/resources/script.js               | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/core/www/idp/logout-iframe.js b/modules/core/www/idp/logout-iframe.js
index 921c23cdf..62e7666b0 100644
--- a/modules/core/www/idp/logout-iframe.js
+++ b/modules/core/www/idp/logout-iframe.js
@@ -5,7 +5,7 @@ function updateStatus()
 {
     var nFailed = 0;
     var nProgress = 0;
-    for (sp in window.spStatus) {
+    for (var sp in window.spStatus) {
         switch (window.spStatus[sp]) {
             case 'failed':
                 nFailed += 1;
diff --git a/www/resources/script.js b/www/resources/script.js
index a195c24cb..e72584a3d 100644
--- a/www/resources/script.js
+++ b/www/resources/script.js
@@ -5,7 +5,7 @@
  */
 function SimpleSAML_focus(id)
 {
-    element = document.getElementById(id);
+    var element = document.getElementById(id);
     if (element != null) {
         element.focus();
     }
@@ -19,7 +19,7 @@ function SimpleSAML_focus(id)
  */
 function SimpleSAML_show(id)
 {
-    element = document.getElementById(id);
+    var element = document.getElementById(id);
     if (element == null) {
         return;
     }
@@ -35,7 +35,7 @@ function SimpleSAML_show(id)
  */
 function SimpleSAML_hide(id)
 {
-    element = document.getElementById(id);
+    var element = document.getElementById(id);
     if (element == null) {
         return;
     }
-- 
GitLab