1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

add code suggestions

This commit is contained in:
dkanada 2020-06-10 13:56:55 +09:00
parent 0d12a033a6
commit daece8a4d9
2 changed files with 3 additions and 3 deletions

View file

@ -21,10 +21,11 @@ define(['viewContainer', 'focusManager', 'queryString', 'layoutManager'], functi
if (!newView.initComplete) {
newView.initComplete = true;
var controller;
if (typeof options.controllerFactory === 'function') {
var controller = new options.controllerFactory(newView, eventDetail.detail.params);
controller = new options.controllerFactory(newView, eventDetail.detail.params);
} else if (options.controllerFactory && typeof options.controllerFactory.default === 'function') {
var controller = new options.controllerFactory.default(newView, eventDetail.detail.params);
controller = new options.controllerFactory.default(newView, eventDetail.detail.params);
}
if (!options.controllerFactory || dispatchPageEvents) {

View file

@ -1,6 +1,5 @@
import datetime from 'datetime';
import loading from 'loading';
import appHost from 'apphost';
import 'emby-button';
import 'listViewStyle';
import 'flexStyles';