diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-05-08 14:10:54 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-05-08 17:40:19 -0500 |
commit | bf9dd2d71fd3a7738221c4d69ed6916af591bd4f (patch) | |
tree | 4ef1fb136e9fbd0ad23dfc8794b0af2e0c948b9b /app | |
parent | 4a0e2d28a93b55b5c6959acd451c8a25456c2d5b (diff) | |
download | gitlab-ce-bf9dd2d71fd3a7738221c4d69ed6916af591bd4f.tar.gz |
remove bind polyfill from project_new.js
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/project_new.js | 4 |
1 files changed, 1 insertions, 3 deletions
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'); |