Skip to content

Commit 7b1b81e

Browse files
fix clear-completed (#364)
1 parent 285e32d commit 7b1b81e

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

resources/todomvc/architecture-examples/jquery-complex/dist/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jQuery(function ($) {
5757
bindEvents: function () {
5858
$('#new-todo').on('keyup', this.create.bind(this));
5959
$('#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));
6161
$('#todo-list')
6262
.on('change', '.toggle', this.toggle.bind(this))
6363
.on('dblclick', 'label', this.edit.bind(this))

resources/todomvc/architecture-examples/jquery-complex/dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ <h1>todos</h1>
5151
<a {{#eq filter 'completed'}}class="selected"{{/eq}}href="#/completed">Completed</a>
5252
</li>
5353
</ul>
54-
{{#if completedTodos}}<button id="clear-completed">Clear completed</button>{{/if}}
54+
{{#if completedTodos}}<button class="clear-completed">Clear completed</button>{{/if}}
5555
</script>
5656
<!-- <script src="node_modules/todomvc-common/base.js"></script> -->
5757
<script src="jquery.min.js"></script>

resources/todomvc/architecture-examples/jquery/dist/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jQuery(function ($) {
5757
bindEvents: function () {
5858
$('#new-todo').on('keyup', this.create.bind(this));
5959
$('#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));
6161
$('#todo-list')
6262
.on('change', '.toggle', this.toggle.bind(this))
6363
.on('dblclick', 'label', this.edit.bind(this))

resources/todomvc/architecture-examples/jquery/dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h1>todos</h1>
5252
<a {{#eq filter 'completed'}}class="selected"{{/eq}}href="#/completed">Completed</a>
5353
</li>
5454
</ul>
55-
{{#if completedTodos}}<button id="clear-completed">Clear completed</button>{{/if}}
55+
{{#if completedTodos}}<button class="clear-completed">Clear completed</button>{{/if}}
5656
</script>
5757
<!-- <script src="node_modules/todomvc-common/base.js"></script> -->
5858
<script src="jquery.min.js"></script>

resources/todomvc/architecture-examples/jquery/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h1>todos</h1>
5252
<a {{#eq filter 'completed'}}class="selected"{{/eq}}href="#/completed">Completed</a>
5353
</li>
5454
</ul>
55-
{{#if completedTodos}}<button id="clear-completed">Clear completed</button>{{/if}}
55+
{{#if completedTodos}}<button class="clear-completed">Clear completed</button>{{/if}}
5656
</script>
5757
<!-- <script src="node_modules/todomvc-common/base.js"></script> -->
5858
<script src="node_modules/jquery/dist/jquery.min.js"></script>

resources/todomvc/architecture-examples/jquery/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "todomvc-jquery",
33
"private": true,
44
"scripts": {
5+
"dev": "http-server . -p 7001 -c-1 --cors",
56
"build": "node scripts/build.js",
67
"serve": "http-server ./dist -p 7002 -c-1 --cors"
78
},

resources/todomvc/architecture-examples/jquery/src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jQuery(function ($) {
5757
bindEvents: function () {
5858
$('#new-todo').on('keyup', this.create.bind(this));
5959
$('#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));
6161
$('#todo-list')
6262
.on('change', '.toggle', this.toggle.bind(this))
6363
.on('dblclick', 'label', this.edit.bind(this))

0 commit comments

Comments
 (0)