From bf9dd2d71fd3a7738221c4d69ed6916af591bd4f Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Mon, 8 May 2017 14:10:54 -0500 Subject: remove bind polyfill from project_new.js --- app/assets/javascripts/project_new.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app/assets/javascripts/project_new.js') diff --git a/app/assets/javascripts/project_new.js b/app/assets/javascripts/project_new.js index e9927c1bf51..04b381fe0e0 100644 --- a/app/assets/javascripts/project_new.js +++ b/app/assets/javascripts/project_new.js @@ -1,11 +1,9 @@ /* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, no-unused-vars, one-var, no-underscore-dangle, prefer-template, no-else-return, prefer-arrow-callback, max-len */ (function() { - var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; }; - this.ProjectNew = (function() { function ProjectNew() { - this.toggleSettings = bind(this.toggleSettings, this); + this.toggleSettings = this.toggleSettings.bind(this); this.$selects = $('.features select'); this.$repoSelects = this.$selects.filter('.js-repo-select'); -- cgit v1.2.3