mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-09-28 00:59:00 +02:00
control (#261)
This commit is contained in:
@@ -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();
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user