diff --git a/examples/lifecycle-events/client.js b/examples/lifecycle-events/client.js index aa0ca3f..56e00d1 100644 --- a/examples/lifecycle-events/client.js +++ b/examples/lifecycle-events/client.js @@ -10,7 +10,7 @@ var todos = [ ]; function updateDOM() { - var todosHtml = todosTemplate.renderSync({ todos: todos }); + var todosHtml = todosTemplate.renderSync({ todos: todos }).toString(); morphdom(document.getElementById('todos'), todosHtml, { onNodeAdded: function(el) { if (el.className === 'todo') { @@ -52,4 +52,4 @@ window.handleRemoveTodoClick = function(el) { updateDOM(); }; -updateDOM(); \ No newline at end of file +updateDOM(); diff --git a/examples/lifecycle-events/todos.marko b/examples/lifecycle-events/todos.marko index 816d798..1c7d3c3 100644 --- a/examples/lifecycle-events/todos.marko +++ b/examples/lifecycle-events/todos.marko @@ -2,7 +2,7 @@