Commit 0d0c0b4a authored by Addy Osmani's avatar Addy Osmani

vanilla-es6: fix code-style issues

parent c2c75ee6
......@@ -153,25 +153,25 @@ export default class View {
break;
case 'toggleAll':
$on(this.$toggleAll, 'click', function(){
$on(this.$toggleAll, 'click', function () {
handler({completed: this.checked});
});
break;
case 'itemEdit':
$delegate(this.$todoList, 'li label', 'dblclick', function(){
$delegate(this.$todoList, 'li label', 'dblclick', function () {
handler({id: _itemId(this)});
});
break;
case 'itemRemove':
$delegate(this.$todoList, '.destroy', 'click', function(){
$delegate(this.$todoList, '.destroy', 'click', function () {
handler({id: _itemId(this)});
});
break;
case 'itemToggle':
$delegate(this.$todoList, '.toggle', 'click', function(){
$delegate(this.$todoList, '.toggle', 'click', function () {
handler({
id: _itemId(this),
completed: this.checked
......
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