diff --git a/mithril/mithril-tests.ts b/mithril/mithril-tests.ts index 5ca26702c..56323c5dd 100644 --- a/mithril/mithril-tests.ts +++ b/mithril/mithril-tests.ts @@ -24,7 +24,7 @@ var todo = { this.add = function() { if (this.description()) { - this.list.push(new todo.Todo({description: this.description()})); + this.list.push(new (todo.Todo)({description: this.description()})); this.description(""); } }.bind(this);