typo
This commit is contained in:
parent
b342e33912
commit
abfeb77fa5
@ -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…
Reference in New Issue
Block a user