Skip to content

Commit

Permalink
::bug-fix::
Browse files Browse the repository at this point in the history
  • Loading branch information
spuckhafte committed Mar 17, 2023
1 parent 641e4e3 commit 9ac989a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tsimp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,9 @@ class TSimp {
this.domElement.addEventListener(event, this.events[event]);
});
}
if (this.attr !== undefined) {
if (this.attr != undefined) {
Object.keys(this.attr).forEach(attr => {
// @ts-ignore
if (!this.domElement.getAttribute(attr) || this.checkIfIncludesState(this.attr[attr]))
// @ts-ignore
if (this.domElement && this.attr)
this.domElement.setAttribute(attr, this.formatString(this.attr[attr]));
});
}
Expand Down

0 comments on commit 9ac989a

Please sign in to comment.