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

reduce direct dom access

This commit is contained in:
Luke Pulverenti 2016-08-20 17:58:28 -04:00
parent f53cb1ca8a
commit b7eaf270a1
13 changed files with 165 additions and 37 deletions

View file

@ -1,4 +1,4 @@
define(['jQuery', 'cardBuilder'], function ($, cardBuilder) {
define(['jQuery', 'cardBuilder', 'dom'], function ($, cardBuilder, dom) {
// The base query options
var query = {
@ -29,7 +29,7 @@
updateFilterControls();
var screenWidth = window.innerWidth;
var screenWidth = dom.getWindowSize().innerWidth;
html += cardBuilder.getCardsHtml({