jellyfish-web/dashboard-ui/bower_components/emby-webcomponents/emby-itemscontainer/emby-itemscontainer.js
2016-07-16 14:02:39 -04:00

17 lines
No EOL
487 B
JavaScript

define(['itemShortcuts', 'registerElement'], function (itemShortcuts) {
var ItemsContainerProtoType = Object.create(HTMLDivElement.prototype);
ItemsContainerProtoType.attachedCallback = function () {
itemShortcuts.on(this);
};
ItemsContainerProtoType.detachedCallback = function () {
itemShortcuts.off(this);
};
document.registerElement('emby-itemscontainer', {
prototype: ItemsContainerProtoType,
extends: 'div'
});
});