add some sanity checks to the todo app

This commit is contained in:
ansuz
2018-02-07 11:07:45 +01:00
parent a0ff3370a2
commit bee5494abb
2 changed files with 19 additions and 0 deletions

View File

@@ -96,6 +96,7 @@ define([
};
var addTaskUI = function (el, animate) {
if (!el) { return; }
var $taskDiv = $('<div>', {
'class': 'cp-app-todo-task'
});