mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Make $::view return __spacePenView from the first element if present
This commit is contained in:
@@ -59,6 +59,9 @@ jQuery.fn.destroyTooltip = ->
|
||||
requireBootstrapTooltip()
|
||||
@tooltip('destroy')
|
||||
|
||||
jQuery.fn.view = ->
|
||||
@[0]?.__spacePenView ? @data('view')
|
||||
|
||||
# Hide tooltips when window is resized
|
||||
jQuery(document.body).on 'show.bs.tooltip', ({target}) ->
|
||||
windowHandler = -> jQuery(target).hideTooltip()
|
||||
|
||||
Reference in New Issue
Block a user