diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-05-08 14:00:32 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-05-08 17:40:15 -0500 |
commit | 417c7e094b265d02adaaeb6515d3b9cbf65247ea (patch) | |
tree | c782b44ce172c1900416287c04074214851f7e29 | |
parent | 683cbc98836a2b52a4326afe8364bae112bd7e1c (diff) | |
download | gitlab-ce-417c7e094b265d02adaaeb6515d3b9cbf65247ea.tar.gz |
remove bind polyfill from issuable_form.js
-rw-r--r-- | app/assets/javascripts/issuable_form.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/assets/javascripts/issuable_form.js b/app/assets/javascripts/issuable_form.js index 687c2bb6110..544fc91876a 100644 --- a/app/assets/javascripts/issuable_form.js +++ b/app/assets/javascripts/issuable_form.js @@ -7,8 +7,6 @@ /* global Pikaday */ (function() { - var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; }; - this.IssuableForm = (function() { IssuableForm.prototype.issueMoveConfirmMsg = 'Are you sure you want to move this issue to another project?'; @@ -17,10 +15,10 @@ function IssuableForm(form) { var $issuableDueDate, calendar; this.form = form; - this.toggleWip = bind(this.toggleWip, this); - this.renderWipExplanation = bind(this.renderWipExplanation, this); - this.resetAutosave = bind(this.resetAutosave, this); - this.handleSubmit = bind(this.handleSubmit, this); + this.toggleWip = this.toggleWip.bind(this); + this.renderWipExplanation = this.renderWipExplanation.bind(this); + this.resetAutosave = this.resetAutosave.bind(this); + this.handleSubmit = this.handleSubmit.bind(this); gl.GfmAutoComplete.setup(); new UsersSelect(); new ZenMode(); |