diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-05-08 14:15:29 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-05-08 17:40:21 -0500 |
commit | 6cd552a1745921e20df82339eaaf1e713d07f12b (patch) | |
tree | 57e868e2cdbe5365dda0a64af35fd245d2d7c2d7 | |
parent | 45e8503facfd806f8621f48653c443d7d31aa9f3 (diff) | |
download | gitlab-ce-6cd552a1745921e20df82339eaaf1e713d07f12b.tar.gz |
remove bind polyfill from u2f/error.js
-rw-r--r-- | app/assets/javascripts/u2f/error.js | 4 |
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; } |