Commit 8255c5dd authored by TasteBot's avatar TasteBot

update the build files for gh-pages [ci skip]

parent 5a3303ac
......@@ -115,6 +115,9 @@ YUI.add('todo-app', function (Y) {
fragment.append(view.render().get('container'));
});
// To delete previously attached views and fix the memory leak.
this.get('container').one('#todo-list').destroy({recursivePurge: true});
this.get('container').one('#todo-list').setContent(fragment);
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment