jellyfish-web/src/bower_components/emby-webcomponents/emby-button/paper-icon-button-light.js

19 lines
546 B
JavaScript
Raw Normal View History

define(['layoutManager', 'css!./emby-button', 'registerElement'], function (layoutManager) {
'use strict';
2018-10-23 01:05:09 +03:00
var EmbyButtonPrototype = Object.create(HTMLButtonElement.prototype);
EmbyButtonPrototype.createdCallback = function () {
this.classList.add('paper-icon-button-light');
if (layoutManager.tv) {
this.classList.add('icon-button-focusscale');
}
};
document.registerElement('paper-icon-button-light', {
2018-10-23 01:05:09 +03:00
prototype: EmbyButtonPrototype,
extends: 'button'
});
2018-10-23 01:05:09 +03:00
});