Oops, add this.open fallback to the open binder.

This commit is contained in:
voussoir 2018-03-10 13:28:13 -08:00
parent c90585665a
commit 6de0ad8e36

View file

@ -193,7 +193,7 @@ function Editor(elements, on_open, on_save, on_cancel)
this.open_button.classList.add("editor_button");
this.open_button.classList.add("editor_open_button");
this.open_button.classList.add("green_button");
this.open_button.onclick = this.binder(on_open);
this.open_button.onclick = this.binder(on_open, this.open);
toolbox.appendChild(this.open_button);
this.save_button = document.createElement("button");