FriendsOfSymfony/FOSTwitterBundle — Issue #16: Twitter anywhere helper, function initialize() JS error.
Author: AHWEBDEV
Created: 2011-12-07 15:24:08+00:00
State: open

On IE, the function initialize(); return the configMap php var to twig.

After the creation of configMap:

foreach ($this->config as $key => $value){
$configMap .= $key.": ".$value.',';
}

We must rtrim the var, to delete last coma.

foreach ($this->config as $key => $value){
$configMap .= $key.": ".$value.',';
}
$configMap = rtrim($configMap,',');

If we do not do that, there is an error on IE.