BigW Consortium Gitlab

Commit d49be6c9 by Mike Greiling

remove bind polyfill from new_commit_form.js

parent d161a2d4
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, no-return-assign, max-len */ /* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, no-return-assign, max-len */
(function() { (function() {
var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; };
this.NewCommitForm = (function() { this.NewCommitForm = (function() {
function NewCommitForm(form, targetBranchName = 'target_branch') { function NewCommitForm(form, targetBranchName = 'target_branch') {
this.form = form; this.form = form;
this.targetBranchName = targetBranchName; this.targetBranchName = targetBranchName;
this.renderDestination = bind(this.renderDestination, this); this.renderDestination = this.renderDestination.bind(this);
this.targetBranchDropdown = form.find('button.js-target-branch'); this.targetBranchDropdown = form.find('button.js-target-branch');
this.originalBranch = form.find('.js-original-branch'); this.originalBranch = form.find('.js-original-branch');
this.createMergeRequest = form.find('.js-create-merge-request'); this.createMergeRequest = form.find('.js-create-merge-request');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment