diff options
author | kushalpandya <kushal@gitlab.com> | 2017-05-26 16:37:09 +0530 |
---|---|---|
committer | kushalpandya <kushal@gitlab.com> | 2017-06-02 18:34:04 +0530 |
commit | c8e5154a3098455aace732795a629a0352c5d609 (patch) | |
tree | 7ea7d0f06fd1d872eb58d97397055b13d6a15de5 | |
parent | d43e474710061fe83f232d1bea33077c2acfe1c7 (diff) | |
download | gitlab-ce-c8e5154a3098455aace732795a629a0352c5d609.tar.gz |
Simplify method binding
-rw-r--r-- | app/assets/javascripts/gfm_auto_complete.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/gfm_auto_complete.js b/app/assets/javascripts/gfm_auto_complete.js index 4c72fd6a999..401dec1a370 100644 --- a/app/assets/javascripts/gfm_auto_complete.js +++ b/app/assets/javascripts/gfm_auto_complete.js @@ -36,7 +36,7 @@ class GfmAutoComplete { // This triggers at.js again // Needed for slash commands with suffixes (ex: /label ~) $input.on('inserted-commands.atwho', $input.trigger.bind($input, 'keyup')); - $input.on('clear-commands-cache.atwho', this.clearCache.bind(this, $input)); + $input.on('clear-commands-cache.atwho', () => this.clearCache()); }); } |