typo
This commit is contained in:
parent
b342e33912
commit
abfeb77fa5
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
class Button {
|
||||
constructor(image) {
|
||||
this.element = document.createElement("button");
|
||||
this.element.add("shadow");
|
||||
this.element.classList.add("shadow");
|
||||
this.element.style.backgroundImage = "url(images/" + image + ".svg)";
|
||||
this._boundClick = this._onClick.bind(this);
|
||||
this.element.addEventListener("click", this._boundClick, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue