mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Fix up things for kevin
This commit is contained in:
@@ -23,13 +23,13 @@ tooltipDefaults =
|
||||
html: true
|
||||
|
||||
getKeystroke = (bindings) ->
|
||||
if bindings and bindings.length
|
||||
if bindings?.length
|
||||
"<span class=\"keystroke\">#{bindings[0].keystroke}</span>"
|
||||
else
|
||||
''
|
||||
|
||||
jQuery.fn.setTooltip = (title, {command, commandElement}={}) ->
|
||||
atom.requireWithGlobals('bootstrap/js/tooltip', {jQuery : jQuery})
|
||||
atom.requireWithGlobals('bootstrap/js/tooltip', {jQuery})
|
||||
|
||||
bindings = if commandElement
|
||||
atom.keymap.keyBindingsForCommandMatchingElement(command, commandElement)
|
||||
|
||||
Reference in New Issue
Block a user