Commit 01636249 authored by Mike Greiling's avatar Mike Greiling

remove bind polyfill from users_select.js

parent b925db54
...@@ -4,14 +4,13 @@ ...@@ -4,14 +4,13 @@
import eventHub from './sidebar/event_hub'; import eventHub from './sidebar/event_hub';
(function() { (function() {
var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; }, const slice = [].slice;
slice = [].slice;
this.UsersSelect = (function() { this.UsersSelect = (function() {
function UsersSelect(currentUser, els) { function UsersSelect(currentUser, els) {
var $els; var $els;
this.users = bind(this.users, this); this.users = this.users.bind(this);
this.user = bind(this.user, this); this.user = this.user.bind(this);
this.usersPath = "/autocomplete/users.json"; this.usersPath = "/autocomplete/users.json";
this.userPath = "/autocomplete/users/:id.json"; this.userPath = "/autocomplete/users/:id.json";
if (currentUser != null) { if (currentUser != null) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment