summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-05-08 14:04:16 -0500
committerMike Greiling <mike@pixelcog.com>2017-05-08 17:40:16 -0500
commit06bf18507896d94da57deb15a9c48a5a4c5b6d53 (patch)
tree485ca663ffe0e012b51dfb97f1db521ed1d94e75
parent59d845f8737fcb8b9118c99e12193477cb7f820c (diff)
downloadgitlab-ce-06bf18507896d94da57deb15a9c48a5a4c5b6d53.tar.gz
remove bind polyfill from namespace_select.js
-rw-r--r--app/assets/javascripts/namespace_select.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/assets/javascripts/namespace_select.js b/app/assets/javascripts/namespace_select.js
index 36bc1257cef..426d7f3288e 100644
--- a/app/assets/javascripts/namespace_select.js
+++ b/app/assets/javascripts/namespace_select.js
@@ -2,11 +2,9 @@
/* global Api */
(function() {
- var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; };
-
window.NamespaceSelect = (function() {
function NamespaceSelect(opts) {
- this.onSelectItem = bind(this.onSelectItem, this);
+ this.onSelectItem = this.onSelectItem.bind(this);
var fieldName, showAny;
this.dropdown = opts.dropdown;
showAny = true;