diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-05-08 22:17:54 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-05-09 01:40:24 +0300 |
commit | e0c6ea8798ccc090224164223fbe32818c47336d (patch) | |
tree | 9ddb3de1b6f13a6357b479becd125385a751764c /spec/javascripts/u2f | |
parent | 8d60a9b64795d1561e89df289d5d504ffe22be36 (diff) |
remove bind polyfill from mock_u2f_device.js
Diffstat (limited to 'spec/javascripts/u2f')
-rw-r--r-- | spec/javascripts/u2f/mock_u2f_device.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/javascripts/u2f/mock_u2f_device.js b/spec/javascripts/u2f/mock_u2f_device.js index 6677fe9c1ee..4eb8ad3d9e4 100644 --- a/spec/javascripts/u2f/mock_u2f_device.js +++ b/spec/javascripts/u2f/mock_u2f_device.js @@ -1,12 +1,10 @@ /* eslint-disable space-before-function-paren, no-var, prefer-rest-params, wrap-iife, no-unused-expressions, no-return-assign, no-param-reassign, max-len */ (function() { - var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; }; - this.MockU2FDevice = (function() { function MockU2FDevice() { - this.respondToAuthenticateRequest = bind(this.respondToAuthenticateRequest, this); - this.respondToRegisterRequest = bind(this.respondToRegisterRequest, this); + this.respondToAuthenticateRequest = this.respondToAuthenticateRequest.bind(this); + this.respondToRegisterRequest = this.respondToRegisterRequest.bind(this); window.u2f || (window.u2f = {}); window.u2f.register = (function(_this) { return function(appId, registerRequests, signRequests, callback) { |