Skip to content

Commit

Permalink
IE8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Aug 19, 2016
1 parent 6f6c6f7 commit 52df008
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions media/system/js/core-uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Joomla.editors.instances = Joomla.editors.instances || {};
/**
* Joomla options storage
* @type {{}}
*/
*/
Joomla.optionsStorage = Joomla.optionsStorage || null;

/**
Expand All @@ -84,13 +84,13 @@ Joomla.editors.instances = Joomla.editors.instances || {};
* @param mixed def Default value if nothing found
*
* @return mixed
*/
*/
Joomla.getOptions = function( key, def) {

// Load options if they not exists
if (!Joomla.optionsStorage) {
var element = document.getElementById('joomla-script-options'),
str = element ? element.innerText : null,
str = element ? (element.text || element.textContent) : null,
options = str ? JSON.parse(str) : null;

Joomla.optionsStorage = options || {};
Expand Down
2 changes: 1 addition & 1 deletion media/system/js/core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 52df008

Please sign in to comment.