1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-09-28 00:59:00 +02:00
This commit is contained in:
Pomax
2020-08-09 17:16:50 -07:00
committed by GitHub
parent fc30421eae
commit c97b1b635e
43 changed files with 812 additions and 465 deletions

View File

@@ -42,14 +42,14 @@ class CustomElement extends HTMLElement {
super();
if (!customElements.resolveScope) {
customElements.resolveScope = function(scope) {
customElements.resolveScope = function (scope) {
try {
return scope.getRootNode().host;
} catch (e) {
console.warn(e);
}
return window;
}
};
}
this._options = options;
@@ -63,7 +63,11 @@ class CustomElement extends HTMLElement {
this.render();
},
attributes: (record) => {
this.handleAttributeChange(record.attributeName, record.oldValue, this.getAttribute(record.attributeName));
this.handleAttributeChange(
record.attributeName,
record.oldValue,
this.getAttribute(record.attributeName)
);
this.render();
},
};