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:15:29 +0300
committerMike Greiling <mike@pixelcog.com>2017-05-09 01:40:21 +0300
commit6cd552a1745921e20df82339eaaf1e713d07f12b (patch)
tree57e868e2cdbe5365dda0a64af35fd245d2d7c2d7 /app/assets/javascripts/u2f/error.js
parent45e8503facfd806f8621f48653c443d7d31aa9f3 (diff)
remove bind polyfill from u2f/error.js
Diffstat (limited to 'app/assets/javascripts/u2f/error.js')
-rw-r--r--app/assets/javascripts/u2f/error.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/assets/javascripts/u2f/error.js b/app/assets/javascripts/u2f/error.js
index fd1829efe18..3119b3480c3 100644
--- a/app/assets/javascripts/u2f/error.js
+++ b/app/assets/javascripts/u2f/error.js
@@ -2,12 +2,10 @@
/* global u2f */
(function() {
- var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; };
-
this.U2FError = (function() {
function U2FError(errorCode, u2fFlowType) {
this.errorCode = errorCode;
- this.message = bind(this.message, this);
+ this.message = this.message.bind(this);
this.httpsDisabled = window.location.protocol !== 'https:';
this.u2fFlowType = u2fFlowType;
}