corrected call to the method

This commit is contained in:
Ricci Dorian 2018-07-31 09:44:18 +02:00
parent 1ea7bfa82a
commit b4c14b9ec9
1 changed files with 97 additions and 97 deletions

View File

@ -1293,13 +1293,13 @@ var tarteaucitron = {
tarteaucitron.cookie.number();
},
"AddOrUpdate" : function AddOrUpdate(source, custom){
"AddOrUpdate" : function(source, custom){
/**
Utility function to Add or update the fields of obj1 with the ones in obj2
*/
for(key in custom){
if(custom[key] instanceof Object){
source[key] = AddOrUpdate(source[key], custom[key]);
source[key] = tarteaucitron.AddOrUpdate(source[key], custom[key]);
}else{
source[key] = custom[key];
}