Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
register: function(component, DFD) {
/*
Add report properties to component object for reference. Used in ajax request.
*/
component.config.url = this.config.url;
component.config.ctxid = this.config['jr.ctxid'];
/*
Create component array.
*/
this.components[component.config.type] = this.components[component.config.type] || [];
this.components[component.config.type].push(component);
/*
Create component map.
*/
var mapName = component.config.type + 'Map';
this.components[mapName] = this.components[mapName] || {};
this.components[mapName][component.config.id] = component;
/*
Deferred used to synchronize component registration which happens asynchronously due to require().
goToPage: function(config) {
return jrLoader.ajaxLoad({
url: this.config.url,
options: {
"jr.page": config.requestedPage,
"jr.ctxid": this.config["jr.ctxid"]
}
});
},
refreshPage: function() {