joomla/joomla-cms — pull request #3072 by Fedik (2014-02-08 12:16:59+00:00)
Title: [#31203] The one way and the one container for store the script options

Example add the script option:
```php
$options = array(
'showAlert' => false,
'consolelog' => true,
'text' => 'Hi! I am "Text"!',
'someArray' => array('one', 'two', 'and so on')
);
$doc->setScriptOptions($options, 'plg_examplejs');
```
Access to the options in frontend:
```javascript
Joomla.optionsStorage.plg_examplejs;
```

**Links:**
* old pull #1319
* [[#31203] The one way and the one container for store the script options](http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=31203) - feature request