Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-05-08 22:10:06 +0300
committerMike Greiling <mike@pixelcog.com>2017-05-09 01:40:18 +0300
commitf71a03728a792d104e2d982acbd1e6d8950334a2 (patch)
treee8a915338c2fb87e958ad3d337c6e622791cbc22 /app/assets/javascripts/notifications_form.js
parent8d865f62b71451ec9aae5025917fda47a79532f1 (diff)
remove bind polyfill from notifications_form.js
Diffstat (limited to 'app/assets/javascripts/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();
}