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

master
voussoir 2018-03-10 13:28:13 -08:00
parent c90585665a
commit 6de0ad8e36
1 changed files with 1 additions and 1 deletions

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_button");
this.open_button.classList.add("editor_open_button"); this.open_button.classList.add("editor_open_button");
this.open_button.classList.add("green_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); toolbox.appendChild(this.open_button);
this.save_button = document.createElement("button"); this.save_button = document.createElement("button");