Commit 1eaebc06 authored by dsumac's avatar dsumac

Use @ui syntax in events hash

parent 935aed05
......@@ -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