💄 Use @ instead of this

This commit is contained in:
Kevin Sawicki
2014-01-21 11:42:21 -08:00
parent 04b2eefec3
commit cb8b38b7f7

View File

@@ -47,7 +47,7 @@ jQuery.fn.setTooltip = (tooltipOptions, {command, commandElement}={}) ->
tooltipOptions.title = "#{tooltipOptions.title} #{getKeystroke(bindings)}"
this.tooltip(jQuery.extend({}, tooltipDefaults, tooltipOptions))
@tooltip(jQuery.extend({}, tooltipDefaults, tooltipOptions))
jQuery.fn.hideTooltip = ->
tip = @data('bs.tooltip')