As I also enable the 'EScriptBoost' extension that compresses and caches javascript, the script id must be unique enough so that caching takes into account the difference in parameters.
I changed the CGoogleApi::register method slightly to modify the script id and to make it use the controller action id:
$cs->registerScript(Yii::app()->getController()->getAction()->getId().'#'.$name,$js,CClientScript::POS_HEAD);

Help












