Content/list fix

This commit is contained in:
Max Lynch
2015-06-18 16:31:49 -05:00
parent 90b2931400
commit 2b2622b63b
2 changed files with 5 additions and 2 deletions

View File

@ -53,10 +53,13 @@ export class Aside {
}
getContentElement() {
if(!this.content || !this.content.domElement) {
if(!this.content && !this.content.domElement) {
console.error('Aside: make sure to specify a content target using #var on the element');
return null;
}
if(this.content instanceof Node) {
return this.content;
}
return this.content.domElement;
}