From 3fb12315ec990b7ccdde78da611202554861dc84 Mon Sep 17 00:00:00 2001 From: Nicolas Rosset Date: Tue, 1 Jun 2021 18:53:04 +0200 Subject: [PATCH] Declare var in for --- tarteaucitron.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tarteaucitron.js b/tarteaucitron.js index 5c68c24..908b194 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -1940,8 +1940,7 @@ var tarteaucitron = { /** Utility function to Add or update the fields of obj1 with the ones in obj2 */ - var key; - for(key in custom){ + for(var key in custom){ if(custom[key] instanceof Object){ source[key] = tarteaucitron.AddOrUpdate(source[key], custom[key]); }else{