diff options
author | Bryce Johnson <bryce@gitlab.com> | 2016-10-04 18:33:19 +0200 |
---|---|---|
committer | Bryce Johnson <bryce@gitlab.com> | 2016-10-05 11:25:06 +0200 |
commit | b6d52a6f10d5f3d65459a953b53ba1c380fd39af (patch) | |
tree | c69966cd9f60396f70f613fb65225f680fc52410 /app/assets/javascripts | |
parent | 16097bbedab5133dfc984ece1da64ca8cd50de03 (diff) | |
download | gitlab-ce-b6d52a6f10d5f3d65459a953b53ba1c380fd39af.tar.gz |
Simplify TemplateSelector keyup/blur handler.
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/blob/template_selector.js.es6 | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/assets/javascripts/blob/template_selector.js.es6 b/app/assets/javascripts/blob/template_selector.js.es6 index a86a2a7c2fc..ba60b3b2b98 100644 --- a/app/assets/javascripts/blob/template_selector.js.es6 +++ b/app/assets/javascripts/blob/template_selector.js.es6 @@ -35,11 +35,7 @@ } bindEvents() { - return this.$input.on('keyup blur', (function(_this) { - return function(e) { - return _this.onFilenameUpdate(); - }; - })(this)); + return this.$input.on('keyup blur', (e) => this.onFilenameUpdate()); } toggleLabel(item) { |