google +1 javascript configuration object

Viewed 555

The google +1 button embed code can have a javascript object with configuration (e.g. "{lang:'de'}").

In plain javascript, this object would be created and immediately destroyed, because it is not referenced by anything.

I wonder how do the google scripts access this object?

<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
  {lang: 'de'}
</script>

It seems to work - except when you dynamically write the script tag including the configuration object into the DOM.

2 Answers
Related