mirror of
https://github.com/google/nomulus
synced 2026-09-20 23:14:44 +00:00
Use params from epp_session.js
Use bundled params instead of passing individual arguments through epp_session.js. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=136384801
This commit is contained in:
@@ -47,10 +47,15 @@ goog.forwardDeclare('registry.Component');
|
||||
* @final
|
||||
*/
|
||||
registry.registrar.Console = function(params) {
|
||||
/**
|
||||
* @type {!Object}
|
||||
*/
|
||||
// We have to define this before creating an EppSession because EppSession's
|
||||
// constructor expects us to have it as an attribute.
|
||||
this.params = params;
|
||||
|
||||
registry.registrar.Console.base(
|
||||
this, 'constructor',
|
||||
new registry.registrar.EppSession(this, params.xsrfToken,
|
||||
params.clientId));
|
||||
this, 'constructor', new registry.registrar.EppSession(this));
|
||||
|
||||
/**
|
||||
* Component that's currently embedded in the page.
|
||||
@@ -63,11 +68,6 @@ registry.registrar.Console = function(params) {
|
||||
// ready here.
|
||||
this.history.setEnabled(true);
|
||||
|
||||
/**
|
||||
* @type {!Object}
|
||||
*/
|
||||
this.params = params;
|
||||
|
||||
/**
|
||||
* Last active nav element.
|
||||
* @type {Element}
|
||||
|
||||
Reference in New Issue
Block a user