File tree Expand file tree Collapse file tree 7 files changed +7
-6
lines changed
resources/todomvc/architecture-examples Expand file tree Collapse file tree 7 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ jQuery(function ($) {
57
57
bindEvents : function ( ) {
58
58
$ ( '#new-todo' ) . on ( 'keyup' , this . create . bind ( this ) ) ;
59
59
$ ( '#toggle-all' ) . on ( 'change' , this . toggleAll . bind ( this ) ) ;
60
- $ ( '#footer' ) . on ( 'click' , '# clear-completed' , this . destroyCompleted . bind ( this ) ) ;
60
+ $ ( '#footer' ) . on ( 'click' , '. clear-completed' , this . destroyCompleted . bind ( this ) ) ;
61
61
$ ( '#todo-list' )
62
62
. on ( 'change' , '.toggle' , this . toggle . bind ( this ) )
63
63
. on ( 'dblclick' , 'label' , this . edit . bind ( this ) )
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ <h1>todos</h1>
51
51
<a {{#eq filter 'completed'}}class="selected"{{/eq}}href="#/completed">Completed</a>
52
52
</li>
53
53
</ul>
54
- {{#if completedTodos}}<button id ="clear-completed">Clear completed</button>{{/if}}
54
+ {{#if completedTodos}}<button class ="clear-completed">Clear completed</button>{{/if}}
55
55
</script>
56
56
<!-- <script src="node_modules/todomvc-common/base.js"></script> -->
57
57
<script src="jquery.min.js"></script>
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ jQuery(function ($) {
57
57
bindEvents : function ( ) {
58
58
$ ( '#new-todo' ) . on ( 'keyup' , this . create . bind ( this ) ) ;
59
59
$ ( '#toggle-all' ) . on ( 'change' , this . toggleAll . bind ( this ) ) ;
60
- $ ( '#footer' ) . on ( 'click' , '# clear-completed' , this . destroyCompleted . bind ( this ) ) ;
60
+ $ ( '#footer' ) . on ( 'click' , '. clear-completed' , this . destroyCompleted . bind ( this ) ) ;
61
61
$ ( '#todo-list' )
62
62
. on ( 'change' , '.toggle' , this . toggle . bind ( this ) )
63
63
. on ( 'dblclick' , 'label' , this . edit . bind ( this ) )
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ <h1>todos</h1>
52
52
< a { { #eq filter 'completed' } } class = "selected" { { / eq} } href = "#/completed" > Completed</ a >
53
53
< / l i >
54
54
</ul >
55
- { { #if completedTodos} } < button id = "clear-completed" > Clear completed</ button > { { / i f } }
55
+ { { #if completedTodos} } < button class = "clear-completed" > Clear completed</ button > { { / i f } }
56
56
</ script >
57
57
<!-- <script src="node_modules/todomvc-common/base.js"></script> -->
58
58
< script src ="jquery.min.js "> </ script >
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ <h1>todos</h1>
52
52
< a { { #eq filter 'completed' } } class = "selected" { { / eq} } href = "#/completed" > Completed</ a >
53
53
< / l i >
54
54
</ul >
55
- { { #if completedTodos} } < button id = "clear-completed" > Clear completed</ button > { { / i f } }
55
+ { { #if completedTodos} } < button class = "clear-completed" > Clear completed</ button > { { / i f } }
56
56
</ script >
57
57
<!-- <script src="node_modules/todomvc-common/base.js"></script> -->
58
58
< script src ="node_modules/jquery/dist/jquery.min.js "> </ script >
Original file line number Diff line number Diff line change 2
2
"name" : " todomvc-jquery" ,
3
3
"private" : true ,
4
4
"scripts" : {
5
+ "dev" : " http-server . -p 7001 -c-1 --cors" ,
5
6
"build" : " node scripts/build.js" ,
6
7
"serve" : " http-server ./dist -p 7002 -c-1 --cors"
7
8
},
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ jQuery(function ($) {
57
57
bindEvents : function ( ) {
58
58
$ ( '#new-todo' ) . on ( 'keyup' , this . create . bind ( this ) ) ;
59
59
$ ( '#toggle-all' ) . on ( 'change' , this . toggleAll . bind ( this ) ) ;
60
- $ ( '#footer' ) . on ( 'click' , '# clear-completed' , this . destroyCompleted . bind ( this ) ) ;
60
+ $ ( '#footer' ) . on ( 'click' , '. clear-completed' , this . destroyCompleted . bind ( this ) ) ;
61
61
$ ( '#todo-list' )
62
62
. on ( 'change' , '.toggle' , this . toggle . bind ( this ) )
63
63
. on ( 'dblclick' , 'label' , this . edit . bind ( this ) )
You can’t perform that action at this time.
0 commit comments