Skip to content

Commit 6984851

Browse files
committed
Comment updates
1 parent fdeb494 commit 6984851

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/todo.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,9 @@
261261

262262
// Define a live click event that will complete a task and remove it from the list.
263263
// We use live instead of just binding the click even because the todo event was
264-
// added dynamically.
264+
// added dynamically and live will catch the event on newly created elements that are
265+
//created after page load.
266+
265267
$("input[type=checkbox]").live("click", function(){
266268

267269
$(this)

0 commit comments

Comments
 (0)