Allow to not switch to a theme if it doesn't exist
This commit is contained in:
parent
2d3f31df8b
commit
5b61b615f5
2 changed files with 31 additions and 11 deletions
|
@ -96,14 +96,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
function onEach(arr, func) {
|
||||
if (arr && arr.length > 0 && func) {
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
func(arr[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function isHidden(elem) {
|
||||
return (elem.offsetParent === null)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue