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;
}

View File

@ -27,9 +27,9 @@ export class List {
this.config = List.config.invoke(this);
setTimeout(() => {
console.log('Content', this.content);
if(util.isDefined(this.virtual)) {
console.log('Content', this.content);
console.log('Virtual?', this.virtual);
console.log('Items?', this.items.length, 'of \'em');
this._initVirtualScrolling();