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:
parent
0d12a033a6
commit
daece8a4d9
2 changed files with 3 additions and 3 deletions
|
@ -21,10 +21,11 @@ define(['viewContainer', 'focusManager', 'queryString', 'layoutManager'], functi
|
||||||
if (!newView.initComplete) {
|
if (!newView.initComplete) {
|
||||||
newView.initComplete = true;
|
newView.initComplete = true;
|
||||||
|
|
||||||
|
var controller;
|
||||||
if (typeof options.controllerFactory === 'function') {
|
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') {
|
} 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) {
|
if (!options.controllerFactory || dispatchPageEvents) {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import datetime from 'datetime';
|
import datetime from 'datetime';
|
||||||
import loading from 'loading';
|
import loading from 'loading';
|
||||||
import appHost from 'apphost';
|
|
||||||
import 'emby-button';
|
import 'emby-button';
|
||||||
import 'listViewStyle';
|
import 'listViewStyle';
|
||||||
import 'flexStyles';
|
import 'flexStyles';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue