remove bind polyfill from merge_request.js
This commit is contained in:
parent
a333f20261
commit
59d845f873
1 changed files with 1 additions and 3 deletions
|
@ -6,8 +6,6 @@ require('./task_list');
|
|||
require('./merge_request_tabs');
|
||||
|
||||
(function() {
|
||||
var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; };
|
||||
|
||||
this.MergeRequest = (function() {
|
||||
function MergeRequest(opts) {
|
||||
// Initialize MergeRequest behavior
|
||||
|
@ -16,7 +14,7 @@ require('./merge_request_tabs');
|
|||
// action - String, current controller action
|
||||
//
|
||||
this.opts = opts != null ? opts : {};
|
||||
this.submitNoteForm = bind(this.submitNoteForm, this);
|
||||
this.submitNoteForm = this.submitNoteForm.bind(this);
|
||||
this.$el = $('.merge-request');
|
||||
this.$('.show-all-commits').on('click', (function(_this) {
|
||||
return function() {
|
||||
|
|
Loading…
Reference in a new issue