Fix up things for kevin

This commit is contained in:
Ben Ogle
2013-11-20 17:10:57 -08:00
parent 4bfd48b983
commit e8bfb7ca09

View File

@@ -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)