corrected call to the method
This commit is contained in:
parent
1ea7bfa82a
commit
b4c14b9ec9
|
|
@ -1293,13 +1293,13 @@ var tarteaucitron = {
|
||||||
|
|
||||||
tarteaucitron.cookie.number();
|
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
|
Utility function to Add or update the fields of obj1 with the ones in obj2
|
||||||
*/
|
*/
|
||||||
for(key in custom){
|
for(key in custom){
|
||||||
if(custom[key] instanceof Object){
|
if(custom[key] instanceof Object){
|
||||||
source[key] = AddOrUpdate(source[key], custom[key]);
|
source[key] = tarteaucitron.AddOrUpdate(source[key], custom[key]);
|
||||||
}else{
|
}else{
|
||||||
source[key] = custom[key];
|
source[key] = custom[key];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue