Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

Commit

Permalink
Revert "Fix to suppress rerender"
Browse files Browse the repository at this point in the history
This reverts commit 6d641fa.
  • Loading branch information
inokawa committed May 1, 2021
1 parent 00ea414 commit 32c047b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dom/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ export class D3Element {
}

getAttr() {
return this.attrs;
return { ...this.attrs };
}

getStyle() {
return this.style.style;
return { ...this.style.style };
}

setAttribute: Element["setAttribute"] = (name, value) => {
Expand Down Expand Up @@ -332,8 +332,8 @@ export class D3Element {
const el = new D3Element(this.nodeName, {
nodeType: this.nodeType,
parentNode: this.parentNode,
attrs: { ...this.getAttr() },
styles: { ...this.getStyle() },
attrs: this.getAttr(),
styles: this.getStyle(),
});

if (deep) {
Expand Down

0 comments on commit 32c047b

Please sign in to comment.