Commit ccc295a7 authored by Evan You's avatar Evan You

Update Vue.js to v0.8.4 and fix IE issue

- fixed some jshint errors overlooked from last commit
- fixed IE-only bug which causes some directives to be skipped
parent 64445b01
......@@ -16,7 +16,7 @@
<ul id="todo-list">
<li class="todo" v-repeat="todos" v-if="filterTodo(this)" v-class="completed: completed, editing: this == editedTodo">
<div class="view">
<input class="toggle" type="checkbox" v-model="completed" v-on="change: toggleTodo(this)">
<input class="toggle" type="checkbox" v-model="completed" v-on="change: toggleTodo">
<label v-text="title" v-on="dblclick: editTodo(this)"></label>
<button class="destroy" v-on="click: removeTodo(this)"></button>
</div>
......
......@@ -59,7 +59,7 @@
// http://vuejs.org/guide/computed.html
computed: {
remaining: function () {
return this.todos.filter(this.filters.active).length
return this.todos.filter(this.filters.active).length;
},
allDone: {
$get: function () {
......@@ -98,7 +98,7 @@
todoStorage.save();
},
toggleTodo: function (todo) {
toggleTodo: function () {
todoStorage.save();
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment