remove bind polyfill from issuable_form.js

This commit is contained in:
Mike Greiling 2017-05-08 14:00:32 -05:00
parent 683cbc9883
commit 417c7e094b

View file

@ -7,8 +7,6 @@
/* global Pikaday */ /* global Pikaday */
(function() { (function() {
var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; };
this.IssuableForm = (function() { this.IssuableForm = (function() {
IssuableForm.prototype.issueMoveConfirmMsg = 'Are you sure you want to move this issue to another project?'; IssuableForm.prototype.issueMoveConfirmMsg = 'Are you sure you want to move this issue to another project?';
@ -17,10 +15,10 @@
function IssuableForm(form) { function IssuableForm(form) {
var $issuableDueDate, calendar; var $issuableDueDate, calendar;
this.form = form; this.form = form;
this.toggleWip = bind(this.toggleWip, this); this.toggleWip = this.toggleWip.bind(this);
this.renderWipExplanation = bind(this.renderWipExplanation, this); this.renderWipExplanation = this.renderWipExplanation.bind(this);
this.resetAutosave = bind(this.resetAutosave, this); this.resetAutosave = this.resetAutosave.bind(this);
this.handleSubmit = bind(this.handleSubmit, this); this.handleSubmit = this.handleSubmit.bind(this);
gl.GfmAutoComplete.setup(); gl.GfmAutoComplete.setup();
new UsersSelect(); new UsersSelect();
new ZenMode(); new ZenMode();