diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-05-09 17:38:05 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-05-09 17:38:05 +0000 |
commit | ff5bd7a9e8bc4f6363794c1dbd2a71ba4ac99ac7 (patch) | |
tree | 592f18c8113aa0622c8a761f98d86590b9e70fc8 /app/assets/javascripts/users_select.js | |
parent | 914a0bbd0ed27909324339470cdbde9756b1e893 (diff) | |
parent | f6d214e17e134e0cb868eb9cff021d8cfc1e88bf (diff) | |
download | gitlab-ce-ff5bd7a9e8bc4f6363794c1dbd2a71ba4ac99ac7.tar.gz |
Merge branch 'remove-needless-bind-polyfills' into 'master'
Remove needless bind and indexOf polyfills
See merge request !11187
Diffstat (limited to 'app/assets/javascripts/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 38462782007..452578d5b98 100644 --- a/app/assets/javascripts/users_select.js +++ b/app/assets/javascripts/users_select.js @@ -6,14 +6,13 @@ window.emitSidebarEvent = window.emitSidebarEvent || $.noop; (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) { |