summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/merge_request.js
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-05-08 14:01:56 -0500
committerMike Greiling <mike@pixelcog.com>2017-05-08 17:40:16 -0500
commit59d845f8737fcb8b9118c99e12193477cb7f820c (patch)
tree424b075f10ae1f0b2f2017777c07896e9d4041eb /app/assets/javascripts/merge_request.js
parenta333f2026169b5efdf882fa7c4372baca0339ed7 (diff)
downloadgitlab-ce-59d845f8737fcb8b9118c99e12193477cb7f820c.tar.gz
remove bind polyfill from merge_request.js
Diffstat (limited to 'app/assets/javascripts/merge_request.js')
-rw-r--r--app/assets/javascripts/merge_request.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/assets/javascripts/merge_request.js b/app/assets/javascripts/merge_request.js
index 5e01aacf2ba..165444d6ddb 100644
--- a/app/assets/javascripts/merge_request.js
+++ b/app/assets/javascripts/merge_request.js
@@ -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() {