mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
ESLint is a magnificent piece of software that everybody should love /sarcasm
This commit is contained in:
parent
133e1c9085
commit
df1f9470e6
1 changed files with 38 additions and 34 deletions
|
@ -3,7 +3,9 @@
|
||||||
import dom from 'dom';
|
import dom from 'dom';
|
||||||
import scrollManager from 'scrollManager';
|
import scrollManager from 'scrollManager';
|
||||||
|
|
||||||
'use strict';
|
/* eslint-disable no-unused-expressions */
|
||||||
|
'use strict';
|
||||||
|
/* eslint-enable no-unused-expressions */
|
||||||
|
|
||||||
var scopes = [];
|
var scopes = [];
|
||||||
function pushScope(elem) {
|
function pushScope(elem) {
|
||||||
|
@ -476,36 +478,38 @@ import scrollManager from 'scrollManager';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
/* eslint-enable indent */
|
||||||
autoFocus: autoFocus,
|
|
||||||
focus: focus,
|
export default {
|
||||||
focusableParent: focusableParent,
|
autoFocus: autoFocus,
|
||||||
getFocusableElements: getFocusableElements,
|
focus: focus,
|
||||||
moveLeft: function (sourceElement, options) {
|
focusableParent: focusableParent,
|
||||||
var container = options ? options.container : null;
|
getFocusableElements: getFocusableElements,
|
||||||
var focusableElements = options ? options.focusableElements : null;
|
moveLeft: function (sourceElement, options) {
|
||||||
nav(sourceElement, 0, container, focusableElements);
|
var container = options ? options.container : null;
|
||||||
},
|
var focusableElements = options ? options.focusableElements : null;
|
||||||
moveRight: function (sourceElement, options) {
|
nav(sourceElement, 0, container, focusableElements);
|
||||||
var container = options ? options.container : null;
|
},
|
||||||
var focusableElements = options ? options.focusableElements : null;
|
moveRight: function (sourceElement, options) {
|
||||||
nav(sourceElement, 1, container, focusableElements);
|
var container = options ? options.container : null;
|
||||||
},
|
var focusableElements = options ? options.focusableElements : null;
|
||||||
moveUp: function (sourceElement, options) {
|
nav(sourceElement, 1, container, focusableElements);
|
||||||
var container = options ? options.container : null;
|
},
|
||||||
var focusableElements = options ? options.focusableElements : null;
|
moveUp: function (sourceElement, options) {
|
||||||
nav(sourceElement, 2, container, focusableElements);
|
var container = options ? options.container : null;
|
||||||
},
|
var focusableElements = options ? options.focusableElements : null;
|
||||||
moveDown: function (sourceElement, options) {
|
nav(sourceElement, 2, container, focusableElements);
|
||||||
var container = options ? options.container : null;
|
},
|
||||||
var focusableElements = options ? options.focusableElements : null;
|
moveDown: function (sourceElement, options) {
|
||||||
nav(sourceElement, 3, container, focusableElements);
|
var container = options ? options.container : null;
|
||||||
},
|
var focusableElements = options ? options.focusableElements : null;
|
||||||
sendText: sendText,
|
nav(sourceElement, 3, container, focusableElements);
|
||||||
isCurrentlyFocusable: isCurrentlyFocusable,
|
},
|
||||||
pushScope: pushScope,
|
sendText: sendText,
|
||||||
popScope: popScope,
|
isCurrentlyFocusable: isCurrentlyFocusable,
|
||||||
focusFirst: focusFirst,
|
pushScope: pushScope,
|
||||||
focusLast: focusLast,
|
popScope: popScope,
|
||||||
moveFocus: moveFocus
|
focusFirst: focusFirst,
|
||||||
};
|
focusLast: focusLast,
|
||||||
|
moveFocus: moveFocus
|
||||||
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue