Skip to content
Snippets Groups Projects
Commit 8af9237c authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Add a docstring to defineCustomElement()

parent 926b7d5a
No related branches found
No related tags found
No related merge requests found
Pipeline #46121 passed
......@@ -80,7 +80,15 @@ export const base64EncodeUnicode = (str) => {
*/
/**
*
* Same as customElements.define() but with some additional error handling.
*
* In case the same component (with the exact same implementation) is already
* defined then this will do nothing instead of erroring out.
*
* In case the browser doesn't support custom elements it will fill all those
* custom tags with an error message so the user gets some feedback instead of
* just an empty page.
*
* @param {string} name
* @param {Function} constructor
* @param {object} options
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment