aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-24 20:50:27 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-24 20:50:27 -0700
commitf466fe721885877d473e66d22caef060919524ea (patch)
tree08f27ea2a89794da5ab376401e1ce743f12d6d20 /ext/fg/js
parent62c2120286ddc39110b8ab01c4248ab5a8604b66 (diff)
Styling work
Diffstat (limited to 'ext/fg/js')
-rw-r--r--ext/fg/js/client.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/fg/js/client.js b/ext/fg/js/client.js
index 2355cf81..fdb46acb 100644
--- a/ext/fg/js/client.js
+++ b/ext/fg/js/client.js
@@ -82,7 +82,9 @@ class Client {
displayKanji: this.displayKanji
};
- handlers[action].call(this, data);
+ if (handlers.hasOwnProperty(action)) {
+ handlers[action].call(this, data);
+ }
}
searchAt(point) {