X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/9135a85de4eef32a91c7a3ee0aa405ed454e5a4c..refs/pull/5429/head:/resources/js/components/component.js diff --git a/resources/js/components/component.js b/resources/js/components/component.js index 292bbb624..c23898bbc 100644 --- a/resources/js/components/component.js +++ b/resources/js/components/component.js @@ -8,20 +8,20 @@ export class Component { /** * The element that the component is registered upon. - * @type {Element} + * @type {HTMLElement} */ $el = null; /** * Mapping of referenced elements within the component. - * @type {Object} + * @type {Object} */ $refs = {}; /** * Mapping of arrays of referenced elements within the component so multiple * references, sharing the same name, can be fetched. - * @type {Object} + * @type {Object} */ $manyRefs = {}; @@ -51,8 +51,9 @@ export class Component { const componentName = this.$name; const event = new CustomEvent(`${componentName}-${eventName}`, { bubbles: true, - detail: data + detail: data, }); this.$el.dispatchEvent(event); } -} \ No newline at end of file + +}