jellyfin-web/dashboard-ui/scripts/livetvguide.js
2016-12-15 01:41:10 -05:00

26 lines
674 B
JavaScript

define(['tvguide'], function (tvguide) {
'use strict';
return function (view, params, tabContent) {
var self = this;
var guideInstance;
self.renderTab = function () {
if (!guideInstance) {
guideInstance = new tvguide({
element: tabContent
});
}
};
self.onShow = function () {
if (guideInstance) {
guideInstance.resume();
}
};
self.onHide = function () {
if (guideInstance) {
guideInstance.pause();
}
};
};
});