in xf/src/xf.view.js [128:155]
complete: function(jqXHR, textStatus) {
if (!$this.component) {
throw 'XF.View "component" linkage lost';
}
if (textStatus == 'success') {
var template = jqXHR.responseText;
// saving template into cache if the option is turned on
if (!XF.settings.noCache) {
if ($this.template.cache && _.has(XF, 'storage')) {
XF.storage.set(url, template);
}
}
$this.template.src = jqXHR.responseText;
$this.status.loading = false;
$this.status.loaded = true;
$this.afterLoadTemplate();
$this.trigger('loaded');
} else {
$this.template.src = null;
$this.status.loading = false;
$this.status.loaded = false;
$this.status.loadingFailed = true;
$this.afterLoadTemplateFailed();
$this.trigger('loaded');
}
}