aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/client.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-08-20 19:32:50 -0700
committerAlex Yatskov <alex@foosoft.net>2016-08-20 19:32:50 -0700
commit8416c9d633ed15f679c9871b9940731fb9a7b386 (patch)
tree1c951a141d1135266e8867d2b5ac1f5d442bf7a2 /ext/fg/js/client.js
parent18fc8d9865406a74dbea47f49ac959a543035ec7 (diff)
More cleanup
Diffstat (limited to 'ext/fg/js/client.js')
-rw-r--r--ext/fg/js/client.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/fg/js/client.js b/ext/fg/js/client.js
index 1bd68aea..628d5b30 100644
--- a/ext/fg/js/client.js
+++ b/ext/fg/js/client.js
@@ -158,9 +158,7 @@ class Client {
}
api_addNote({index, mode}) {
- const state = {};
- state[mode] = false;
-
+ const state = {[mode]: false};
bgAddDefinition(this.definitions[index], mode).then((success) => {
if (success) {
this.popup.sendMessage('setActionState', {index, state, sequence: this.sequence});