Skip to content
Browse files

fix #458 error when no skin and no widgets loaded

Due to a bug in the code delivered in 59e9ba7
(pull request #427), when no skin and no widgets were loaded, JavaScript
errors were thrown due to nullpointer exception.
  • Loading branch information...
1 parent 6ba6417 commit be6ac19920c32158cdf56c2ea957adde60de4e05 @jakub-g committed Apr 11, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/aria/core/TplClassLoader.js
  2. +1 −1 src/aria/templates/TemplateCtxt.js
View
2 src/aria/core/TplClassLoader.js
@@ -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) {
View
2 src/aria/templates/TemplateCtxt.js
@@ -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);

0 comments on commit be6ac19

Please sign in to comment.
Something went wrong with that request. Please try again.