From 06bf18507896d94da57deb15a9c48a5a4c5b6d53 Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Mon, 8 May 2017 14:04:16 -0500 Subject: remove bind polyfill from namespace_select.js --- app/assets/javascripts/namespace_select.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app/assets/javascripts/namespace_select.js') 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; -- cgit v1.2.1