diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-05-08 21:57:58 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-05-09 01:40:14 +0300 |
commit | 2dc1111619d8b673a83d3da640984e4efb9116eb (patch) | |
tree | 0bfabfb93b7acd73d2d10f5d9df6bd3c525f6bfe /app/assets/javascripts/gl_dropdown.js | |
parent | 306be281ccfccdb1003c8ef4d90e800c6b58be18 (diff) |
remove bind polyfill from gl_dropdown.js
Diffstat (limited to 'app/assets/javascripts/gl_dropdown.js')
-rw-r--r-- | app/assets/javascripts/gl_dropdown.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/app/assets/javascripts/gl_dropdown.js b/app/assets/javascripts/gl_dropdown.js index 0c9eb84f0eb..7ebc0501e84 100644 --- a/app/assets/javascripts/gl_dropdown.js +++ b/app/assets/javascripts/gl_dropdown.js @@ -2,7 +2,6 @@ /* global fuzzaldrinPlus */ var GitLabDropdown, GitLabDropdownFilter, GitLabDropdownRemote, - bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; }, indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i += 1) { if (i in this && this[i] === item) return i; } return -1; }; GitLabDropdownFilter = (function() { @@ -213,10 +212,10 @@ GitLabDropdown = (function() { var searchFields, selector, self; this.el = el1; this.options = options; - this.updateLabel = bind(this.updateLabel, this); - this.hidden = bind(this.hidden, this); - this.opened = bind(this.opened, this); - this.shouldPropagate = bind(this.shouldPropagate, this); + this.updateLabel = this.updateLabel.bind(this); + this.hidden = this.hidden.bind(this); + this.opened = this.opened.bind(this); + this.shouldPropagate = this.shouldPropagate.bind(this); self = this; selector = $(this.el).data("target"); this.dropdown = selector != null ? $(selector) : $(this.el).parent(); |