BigW Consortium Gitlab

Commit 2dc11116 by Mike Greiling

remove bind polyfill from gl_dropdown.js

parent 306be281
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* global fuzzaldrinPlus */ /* global fuzzaldrinPlus */
var GitLabDropdown, GitLabDropdownFilter, GitLabDropdownRemote, 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; }; 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() { GitLabDropdownFilter = (function() {
...@@ -213,10 +212,10 @@ GitLabDropdown = (function() { ...@@ -213,10 +212,10 @@ GitLabDropdown = (function() {
var searchFields, selector, self; var searchFields, selector, self;
this.el = el1; this.el = el1;
this.options = options; this.options = options;
this.updateLabel = bind(this.updateLabel, this); this.updateLabel = this.updateLabel.bind(this);
this.hidden = bind(this.hidden, this); this.hidden = this.hidden.bind(this);
this.opened = bind(this.opened, this); this.opened = this.opened.bind(this);
this.shouldPropagate = bind(this.shouldPropagate, this); this.shouldPropagate = this.shouldPropagate.bind(this);
self = this; self = this;
selector = $(this.el).data("target"); selector = $(this.el).data("target");
this.dropdown = selector != null ? $(selector) : $(this.el).parent(); this.dropdown = selector != null ? $(selector) : $(this.el).parent();
......
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