This commit is contained in:
Blue 2018-11-19 17:45:42 +03:00
parent b342e33912
commit abfeb77fa5
1 changed files with 1 additions and 1 deletions

View File

@ -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);