Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

fix #458 error when no skin and no widgets loaded #458

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+2 −2
Split
@@ -150,7 +150,7 @@
}
var cssToReload = ['aria.templates.GlobalStyle'];
- if (aria.widgets.AriaSkin) {
+ if (aria.widgets && aria.widgets.AriaSkin) {
cssToReload.push('aria.templates.LegacyGeneralStyle');
}
if (cfg.reload) {
@@ -170,7 +170,7 @@
if (this._globalCssDepsLoaded) {
// PTR 05086835: only unload the global CSS if it was loaded by this instance
var deps = ['aria.templates.GlobalStyle'];
- if (aria.widgets.AriaSkin) {
+ if (aria.widgets && aria.widgets.AriaSkin) {
deps.push('aria.templates.LegacyGeneralStyle');
}
aria.templates.CSSMgr.unloadWidgetDependencies('aria.templates.Template', deps);