mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 23:48:05 +03:00
Bind multiple events to single callback
This commit is contained in:
parent
4527d8bd51
commit
e2af4c964d
@ -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: ->
|
||||
|
Loading…
Reference in New Issue
Block a user