File tree Expand file tree Collapse file tree 6 files changed +10
-49
lines changed
Expand file tree Collapse file tree 6 files changed +10
-49
lines changed Original file line number Diff line number Diff line change 11##knockout.js/total.js
22
3- The obligatory TODO app featuring Knockout.js and total.js
3+ The obligatory TODO app featuring Knockout.js and total.js.
44
5- npm install total.js
5+ Author: [ Joe Conley] ( https://github.com/josephpconley )
6+
7+ ```
8+ npm install total.js
9+ ```
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ function TodoApp(){
88 var self = this ;
99 self . todos = ko . observableArray ( [ ] ) ;
1010 self . newTodo = ko . observable ( "" ) ;
11- self . saveTodo = function ( data , event ) {
11+ self . saveTodo = function ( data , event ) {
1212 //if enter was pressed then save
1313 if ( event . keyCode == 13 ) {
1414 self . todos . push ( new Todo ( self . newTodo ( ) ) ) ;
1515 self . newTodo ( "" ) ;
1616 }
1717 return true ;
18- }
18+ } ;
1919 self . clearCompleted = function ( ) {
20- self . todos . remove ( function ( todo ) { return todo . completed ( ) } )
21- }
20+ self . todos . remove ( function ( todo ) { return todo . completed ( ) } ) ;
21+ } ;
2222}
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments