summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-05-08 14:10:06 -0500
committerMike Greiling <mike@pixelcog.com>2017-05-08 17:40:18 -0500
commitf71a03728a792d104e2d982acbd1e6d8950334a2 (patch)
treee8a915338c2fb87e958ad3d337c6e622791cbc22
parent8d865f62b71451ec9aae5025917fda47a79532f1 (diff)
downloadgitlab-ce-f71a03728a792d104e2d982acbd1e6d8950334a2.tar.gz
remove bind polyfill from notifications_form.js
-rw-r--r--app/assets/javascripts/notifications_form.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/assets/javascripts/notifications_form.js b/app/assets/javascripts/notifications_form.js
index 5005af90d48..2ab9c4fed2c 100644
--- a/app/assets/javascripts/notifications_form.js
+++ b/app/assets/javascripts/notifications_form.js
@@ -1,10 +1,8 @@
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, one-var, one-var-declaration-per-line, newline-per-chained-call, comma-dangle, consistent-return, prefer-arrow-callback, max-len */
(function() {
- var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; };
-
this.NotificationsForm = (function() {
function NotificationsForm() {
- this.toggleCheckbox = bind(this.toggleCheckbox, this);
+ this.toggleCheckbox = this.toggleCheckbox.bind(this);
this.removeEventListeners();
this.initEventListeners();
}