mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
loop fix
This commit is contained in:
parent
8432ac0da7
commit
66a18f93d8
1 changed files with 5 additions and 5 deletions
|
@ -17,7 +17,7 @@ function getOffsets(elems) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var box;
|
var box;
|
||||||
for (let elem in elems) {
|
for (let elem of elems) {
|
||||||
// Support: BlackBerry 5, iOS 3 (original iPhone)
|
// Support: BlackBerry 5, iOS 3 (original iPhone)
|
||||||
// If we don't have gBCR, just use 0,0 rather than error
|
// If we don't have gBCR, just use 0,0 rather than error
|
||||||
if (elem.getBoundingClientRect) {
|
if (elem.getBoundingClientRect) {
|
||||||
|
@ -26,12 +26,12 @@ function getOffsets(elems) {
|
||||||
box = { top: 0, left: 0 };
|
box = { top: 0, left: 0 };
|
||||||
}
|
}
|
||||||
|
|
||||||
results[i] = {
|
results.push({
|
||||||
top: box.top,
|
top: box.top,
|
||||||
left: box.left,
|
left: box.left,
|
||||||
width: box.width,
|
width: box.width,
|
||||||
height: box.height
|
height: box.height
|
||||||
};
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return results;
|
return results;
|
||||||
|
@ -144,7 +144,7 @@ export function show(options) {
|
||||||
var renderIcon = false;
|
var renderIcon = false;
|
||||||
var icons = [];
|
var icons = [];
|
||||||
var itemIcon;
|
var itemIcon;
|
||||||
for (let item in options.items) {
|
for (let item of options.items) {
|
||||||
|
|
||||||
itemIcon = item.icon || (item.selected ? 'check' : null);
|
itemIcon = item.icon || (item.selected ? 'check' : null);
|
||||||
|
|
||||||
|
@ -203,7 +203,7 @@ export function show(options) {
|
||||||
menuItemClass += ' actionsheet-xlargeFont';
|
menuItemClass += ' actionsheet-xlargeFont';
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let item in options.items) {
|
for (let [i, item] of options.items.entries()) {
|
||||||
|
|
||||||
if (item.divider) {
|
if (item.divider) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue