1
Fork 0

Allow to not switch to a theme if it doesn't exist

This commit is contained in:
Guillaume Gomez 2018-02-20 20:11:58 +01:00
parent 2d3f31df8b
commit 5b61b615f5
2 changed files with 31 additions and 11 deletions

View file

@ -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)
}