forked from 0x2620/oxjs
IE8 fixes
This commit is contained in:
parent
12dcdf13fc
commit
aa8f4133be
5 changed files with 11 additions and 10 deletions
|
|
@ -14,8 +14,9 @@ Ox.Theme = (function() {
|
|||
};
|
||||
|
||||
function getTheme() {
|
||||
var theme = '';
|
||||
Ox.forEach(Ox.UI.$body.attr('class').split(' '), function(className) {
|
||||
var classNames = Ox.UI.$body.attr('class'),
|
||||
theme = '';
|
||||
classNames && Ox.forEach(classNames.split(' '), function(className) {
|
||||
if (Ox.startsWith(className, 'OxTheme')) {
|
||||
theme = className.replace('OxTheme', '').toLowerCase();
|
||||
Ox.Break();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue