Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit de7e2ce2934bfbf915dce61805b6481473390e70 1 parent d3922f5
@jakub-g jakub-g authored piuccio committed
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);
Please sign in to comment.
Something went wrong with that request. Please try again.