Skip to content

Commit

Permalink
Adds blur method
Browse files Browse the repository at this point in the history
  • Loading branch information
ajimix authored Dec 13, 2017
1 parent 9f5b390 commit 9dc4936
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions input.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ class exports.Input extends Layer
focus: () ->
@input.focus()

blur: () ->
@input.blur()

onFocus: (cb) ->
@input.addEventListener "focus", ->
cb.apply(@)
Expand Down

0 comments on commit 9dc4936

Please sign in to comment.