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

cleanup data-require in views

This commit is contained in:
vitorsemeano 2019-04-03 00:12:02 +01:00
parent 315cbb1fc6
commit ede8b3397d
40 changed files with 66 additions and 40 deletions

View file

@ -21,7 +21,7 @@ define(['viewContainer', 'focusManager', 'queryString', 'layoutManager'], functi
if (!newView.initComplete) {
newView.initComplete = true;
if (options.controllerFactory) {
if (typeof options.controllerFactory === 'function') {
// Use controller method
var controller = new options.controllerFactory(newView, eventDetail.detail.params);