Skip to content

Commit

Permalink
Do not try to add css-classes to non-Items.
Browse files Browse the repository at this point in the history
  • Loading branch information
akreuzkamp committed Aug 13, 2014
1 parent c98583d commit cd55b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qtcore.js
Expand Up @@ -264,7 +264,7 @@ function construct(meta) {
} else if (component = engine.loadComponent(meta.object.$class)) {
item = component.createObject(meta.parent);

if (engine.renderMode == QMLRenderMode.DOM)
if (engine.renderMode == QMLRenderMode.DOM && item.dom)
item.dom.className += " " + meta.object.$class + (meta.object.id ? " " + meta.object.id : "");
} else {
console.log("No constructor found for " + meta.object.$class);
Expand Down

0 comments on commit cd55b71

Please sign in to comment.