Commit 3dd0327c authored by Sindre Sorhus's avatar Sindre Sorhus

Merge pull request #1024 from teamso/uiHashSyntax

Use @ui syntax in events hash
parents c25a5658 1eaebc06
......@@ -14,7 +14,7 @@ TodoMVC.module('Layout', function (Layout, App, Backbone) {
},
events: {
'keypress #new-todo': 'onInputKeypress'
'keypress @ui.input': 'onInputKeypress'
},
onInputKeypress: function (e) {
......
......@@ -18,8 +18,8 @@ TodoMVC.module('TodoList.Views', function (Views, App, Backbone, Marionette, $)
events: {
'click .destroy': 'deleteModel',
'dblclick label': 'onEditClick',
'keydown .edit': 'onEditKeypress',
'focusout .edit': 'onEditFocusout',
'keydown @ui.edit': 'onEditKeypress',
'focusout @ui.edit': 'onEditFocusout',
'click .toggle': 'toggle'
},
......
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