remove bind polyfill from u2f/register.js
This commit is contained in:
parent
6cd552a174
commit
b925db54c9
1 changed files with 8 additions and 10 deletions
|
@ -8,19 +8,17 @@
|
||||||
// State Flow #1: setup -> in_progress -> registered -> POST to server
|
// State Flow #1: setup -> in_progress -> registered -> POST to server
|
||||||
// State Flow #2: setup -> in_progress -> error -> setup
|
// State Flow #2: setup -> in_progress -> error -> setup
|
||||||
(function() {
|
(function() {
|
||||||
var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; };
|
|
||||||
|
|
||||||
this.U2FRegister = (function() {
|
this.U2FRegister = (function() {
|
||||||
function U2FRegister(container, u2fParams) {
|
function U2FRegister(container, u2fParams) {
|
||||||
this.container = container;
|
this.container = container;
|
||||||
this.renderNotSupported = bind(this.renderNotSupported, this);
|
this.renderNotSupported = this.renderNotSupported.bind(this);
|
||||||
this.renderRegistered = bind(this.renderRegistered, this);
|
this.renderRegistered = this.renderRegistered.bind(this);
|
||||||
this.renderError = bind(this.renderError, this);
|
this.renderError = this.renderError.bind(this);
|
||||||
this.renderInProgress = bind(this.renderInProgress, this);
|
this.renderInProgress = this.renderInProgress.bind(this);
|
||||||
this.renderSetup = bind(this.renderSetup, this);
|
this.renderSetup = this.renderSetup.bind(this);
|
||||||
this.renderTemplate = bind(this.renderTemplate, this);
|
this.renderTemplate = this.renderTemplate.bind(this);
|
||||||
this.register = bind(this.register, this);
|
this.register = this.register.bind(this);
|
||||||
this.start = bind(this.start, this);
|
this.start = this.start.bind(this);
|
||||||
this.appId = u2fParams.app_id;
|
this.appId = u2fParams.app_id;
|
||||||
this.registerRequests = u2fParams.register_requests;
|
this.registerRequests = u2fParams.register_requests;
|
||||||
this.signRequests = u2fParams.sign_requests;
|
this.signRequests = u2fParams.sign_requests;
|
||||||
|
|
Loading…
Reference in a new issue