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