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