Skip to content
Snippets Groups Projects
Commit 59d845f8 authored by Mike Greiling's avatar Mike Greiling
Browse files

remove bind polyfill from merge_request.js

parent a333f202
No related branches found
No related tags found
2 merge requests!12073Add RC2 changes to 9-3-stable,!11187Remove needless bind and indexOf polyfills
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment