jellyfin-web/dashboard-ui/scripts/livetvguide.js

26 lines
674 B
JavaScript
Raw Normal View History

2016-05-15 10:11:26 -07:00
define(['tvguide'], function (tvguide) {
2016-10-22 22:11:46 -07:00
'use strict';
2016-05-15 10:11:26 -07:00
return function (view, params, tabContent) {
var self = this;
var guideInstance;
self.renderTab = function () {
if (!guideInstance) {
guideInstance = new tvguide({
element: tabContent
});
}
2016-12-14 23:41:10 -07:00
};
self.onShow = function () {
if (guideInstance) {
guideInstance.resume();
}
};
self.onHide = function () {
if (guideInstance) {
guideInstance.pause();
}
2016-05-15 10:11:26 -07:00
};
};
});