diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-05-08 14:08:16 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-05-08 17:40:17 -0500 |
commit | d161a2d454f94132b665fc57ddc269a392a45ba7 (patch) | |
tree | 7e53ddb6ba80f15bd27393c0ed22edd73806aac4 /app | |
parent | 06bf18507896d94da57deb15a9c48a5a4c5b6d53 (diff) | |
download | gitlab-ce-d161a2d454f94132b665fc57ddc269a392a45ba7.tar.gz |
remove bind polyfill from new_branch_form.js
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/new_branch_form.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/assets/javascripts/new_branch_form.js b/app/assets/javascripts/new_branch_form.js index 67046d52a65..c4733253af8 100644 --- a/app/assets/javascripts/new_branch_form.js +++ b/app/assets/javascripts/new_branch_form.js @@ -1,11 +1,10 @@ /* eslint-disable func-names, space-before-function-paren, no-var, one-var, prefer-rest-params, max-len, vars-on-top, wrap-iife, consistent-return, comma-dangle, one-var-declaration-per-line, quotes, no-return-assign, prefer-arrow-callback, prefer-template, no-shadow, no-else-return, max-len, object-shorthand */ (function() { - var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; }, - indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i += 1) { if (i in this && this[i] === item) return i; } return -1; }; + var indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i += 1) { if (i in this && this[i] === item) return i; } return -1; }; this.NewBranchForm = (function() { function NewBranchForm(form, availableRefs) { - this.validate = bind(this.validate, this); + this.validate = this.validate.bind(this); this.branchNameError = form.find('.js-branch-name-error'); this.name = form.find('.js-branch-name'); this.ref = form.find('#ref'); |