Permalink
Browse files

even better docs

  • Loading branch information...
1 parent e6596ed commit dc5a302636f14c5bec422b7ccf1fa48342637073 Pinhook committed Apr 27, 2011
Showing with 9 additions and 2 deletions.
  1. +9 −2 todo/todo.js
View
@@ -109,9 +109,16 @@ $.Model.List('Todo.List',{
/**
- * A Todos widget
+ * A Todos widget created like
*
- * $("#todos").todos({list: new Todo.List()})
+ * $("#todos").todos({ list: new Todo.List() });
+ *
+ * It listens on changes to the list and items in the list with the following actions:
+ *
+ * - "{list} add" - todos being added to the list
+ * - "{list} remove" - todos being removed from the list
+ * - "{list} update" - todos being updated in the list
+ *
*/
$.Controller('Todos',{

0 comments on commit dc5a302

Please sign in to comment.