diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-05-08 14:16:44 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-05-08 17:40:23 -0500 |
commit | 0163624985e203372cc70599a7481fc19d96fa6d (patch) | |
tree | 56d06218811e2ed78f7973b07280c0a2b6628b07 | |
parent | b925db54c945d02c9bd7f24e36f086a743392347 (diff) | |
download | gitlab-ce-0163624985e203372cc70599a7481fc19d96fa6d.tar.gz |
remove bind polyfill from users_select.js
-rw-r--r-- | app/assets/javascripts/users_select.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/assets/javascripts/users_select.js b/app/assets/javascripts/users_select.js index be29b08c343..c36c1086ceb 100644 --- a/app/assets/javascripts/users_select.js +++ b/app/assets/javascripts/users_select.js @@ -4,14 +4,13 @@ import eventHub from './sidebar/event_hub'; (function() { - var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; }, - slice = [].slice; + const slice = [].slice; this.UsersSelect = (function() { function UsersSelect(currentUser, els) { var $els; - this.users = bind(this.users, this); - this.user = bind(this.user, this); + this.users = this.users.bind(this); + this.user = this.user.bind(this); this.usersPath = "/autocomplete/users.json"; this.userPath = "/autocomplete/users/:id.json"; if (currentUser != null) { |