diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-11-25 14:19:18 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-11-26 22:06:27 -0500 |
commit | 0aed27b66d9c496e4cd57ef95d982c4e634a8666 (patch) | |
tree | e73353f53b028c211fe38043bd12a3a520daa9c1 /ext/bg/js/mecab.js | |
parent | 663667306ce7ddcfeb603191dcd4a0f133f08b37 (diff) |
Replace hasOwnProperty with simplified hasOwn function
Diffstat (limited to 'ext/bg/js/mecab.js')
-rw-r--r-- | ext/bg/js/mecab.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/mecab.js b/ext/bg/js/mecab.js index 246f8bba..297432e2 100644 --- a/ext/bg/js/mecab.js +++ b/ext/bg/js/mecab.js @@ -60,7 +60,7 @@ class Mecab { } onNativeMessage({sequence, data}) { - if (this.listeners.hasOwnProperty(sequence)) { + if (hasOwn(this.listeners, sequence)) { const {callback, timer} = this.listeners[sequence]; clearTimeout(timer); callback(data); |