1
0
Fork 0

We should be using .bind(this) more when doing this.

This commit is contained in:
Kitteh 2021-05-05 22:05:57 +01:00
parent c7e37b36cd
commit ae828dfa9f

View file

@ -50,8 +50,8 @@ export class KeyValueNewPage extends Page {
this.addKVNewForm.addEventListener("submit", function (e) {
e.preventDefault();
pageState.currentPage.newKVSecretHandleForm();
});
this.newKVSecretHandleForm();
}.bind(this));
}
newKVSecretHandleForm() {