diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-05-08 14:09:01 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-05-08 17:40:17 -0500 |
commit | d49be6c94d958f5b84cbac3e75bf6525049b3193 (patch) | |
tree | f820059dfd2d6df41f32f7d78443d39bb093196a /app | |
parent | d161a2d454f94132b665fc57ddc269a392a45ba7 (diff) | |
download | gitlab-ce-d49be6c94d958f5b84cbac3e75bf6525049b3193.tar.gz |
remove bind polyfill from new_commit_form.js
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/new_commit_form.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/assets/javascripts/new_commit_form.js b/app/assets/javascripts/new_commit_form.js index ad36f08840d..658879607e2 100644 --- a/app/assets/javascripts/new_commit_form.js +++ b/app/assets/javascripts/new_commit_form.js @@ -1,12 +1,10 @@ /* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, no-return-assign, max-len */ (function() { - var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; }; - this.NewCommitForm = (function() { function NewCommitForm(form, targetBranchName = 'target_branch') { this.form = form; this.targetBranchName = targetBranchName; - this.renderDestination = bind(this.renderDestination, this); + this.renderDestination = this.renderDestination.bind(this); this.targetBranchDropdown = form.find('button.js-target-branch'); this.originalBranch = form.find('.js-original-branch'); this.createMergeRequest = form.find('.js-create-merge-request'); |