Merge pull request #685 from mapado/nr-fix_missing_var_declaratino

Missing some var declarations
This commit is contained in:
Amauri CHAMPEAUX 2021-06-01 18:58:26 +02:00 committed by GitHub
commit 3d9c71c48c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 10 deletions

View File

@ -1940,7 +1940,7 @@ var tarteaucitron = {
/** /**
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(var key in custom){
if(custom[key] instanceof Object){ if(custom[key] instanceof Object){
source[key] = tarteaucitron.AddOrUpdate(source[key], custom[key]); source[key] = tarteaucitron.AddOrUpdate(source[key], custom[key]);
}else{ }else{

View File

@ -1872,6 +1872,7 @@ tarteaucitron.services.googlemaps = {
return '<div id="' + uniqId + '" zoom="' + x.getAttribute('zoom') + '" latitude="' + x.getAttribute('latitude') + '" longitude="' + x.getAttribute('longitude') + '" style="width:' + x.offsetWidth + 'px;height:' + x.offsetHeight + 'px"></div>'; return '<div id="' + uniqId + '" zoom="' + x.getAttribute('zoom') + '" latitude="' + x.getAttribute('latitude') + '" longitude="' + x.getAttribute('longitude') + '" style="width:' + x.offsetWidth + 'px;height:' + x.offsetHeight + 'px"></div>';
}); });
var i;
for (i = 0; i < uniqIds.length; i += 1) { for (i = 0; i < uniqIds.length; i += 1) {
mapOptions = { mapOptions = {
zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10), zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
@ -2847,6 +2848,7 @@ tarteaucitron.services.twitterembed = {
}); });
tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () { tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
var i;
for (i = 0; i < uniqIds.length; i += 1) { for (i = 0; i < uniqIds.length; i += 1) {
e = document.getElementById(uniqIds[i]); e = document.getElementById(uniqIds[i]);
twttr.widgets.createTweet( twttr.widgets.createTweet(