mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Bind multiple events to single callback
This commit is contained in:
@@ -44,10 +44,7 @@ class SignInView extends ScrollView
|
||||
@cancel.on 'click', => @detach()
|
||||
@on 'core:cancel', => @detach()
|
||||
|
||||
@subscribe $(document.body), 'click', (e) =>
|
||||
@detach() unless $.contains(this[0], e.target)
|
||||
|
||||
@subscribe $(document.body), 'focusin', (e) =>
|
||||
@subscribe $(document.body), 'click focusin', (e) =>
|
||||
@detach() unless $.contains(this[0], e.target)
|
||||
|
||||
validate: ->
|
||||
|
||||
Reference in New Issue
Block a user