summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-05-08 14:16:44 -0500
committerMike Greiling <mike@pixelcog.com>2017-05-08 17:40:23 -0500
commit0163624985e203372cc70599a7481fc19d96fa6d (patch)
tree56d06218811e2ed78f7973b07280c0a2b6628b07
parentb925db54c945d02c9bd7f24e36f086a743392347 (diff)
downloadgitlab-ce-0163624985e203372cc70599a7481fc19d96fa6d.tar.gz
remove bind polyfill from users_select.js
-rw-r--r--app/assets/javascripts/users_select.js7
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) {