diff --git a/source/Ox.UI/js/Core/Theme.js b/source/Ox.UI/js/Core/Theme.js index 0c23ecbd..221901c4 100644 --- a/source/Ox.UI/js/Core/Theme.js +++ b/source/Ox.UI/js/Core/Theme.js @@ -9,9 +9,10 @@ Ox.Theme get/set theme Ox.Theme = (function() { - var that = function(theme) { - return theme ? setTheme(theme) : getTheme(); - }; + var localStorage = Ox.localStorage('Ox'), + that = function(theme) { + return theme ? setTheme(theme) : getTheme(); + }; function getTheme() { var classNames = Ox.UI.$body.attr('class'), @@ -123,7 +124,7 @@ Ox.Theme = (function() { }); }); } - Ox.localStorage('Ox')('theme', theme); + localStorage({theme: theme}); return that; }