Skip to content

Commit

Permalink
Forgot to update Knockback src files
Browse files Browse the repository at this point in the history
Followup to 2b99514
  • Loading branch information
sindresorhus committed Aug 6, 2012
1 parent 301a054 commit 9eebbcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion architecture-examples/knockback/src/app.coffee
Expand Up @@ -7,7 +7,7 @@ $ ->
ko.bindingHandlers.selectAndFocus =
init: (element, value_accessor, all_bindings_accessor) ->
ko.bindingHandlers.hasfocus.init(element, value_accessor, all_bindings_accessor)
ko.utils.registerEventHandler(element, 'focus', -> element.select())
ko.utils.registerEventHandler(element, 'focus', -> element.focus())
update: (element, value_accessor) ->
ko.utils.unwrapObservable(value_accessor()) # create dependency
_.defer(=>ko.bindingHandlers.hasfocus.update(element, value_accessor))
Expand Down
Expand Up @@ -19,7 +19,7 @@ TodoViewModel = (model) ->

@onDestroyTodo = => model.destroy()

@onCheckEditBegin = => (@editing(true); $('.todo-input').focus()) if not @editing() and not @completed()
@onCheckEditBegin = => @editing(true) if not @editing() and not @completed()
@onCheckEditEnd = (view_model, event) => ($('.todo-input').blur(); @editing(false)) if (event.keyCode == 13) or (event.type == 'blur')
@

Expand Down

0 comments on commit 9eebbcc

Please sign in to comment.