Don't override the default options!

This commit is contained in:
Ben Ogle
2013-11-22 15:39:47 -08:00
parent aae9614839
commit 32e25d4bb2

View File

@@ -74,7 +74,7 @@ jQuery.fn.setTooltip = (tooltipOptions, {command, commandElement}={}) ->
tooltipOptions.title = "#{tooltipOptions.title} #{getKeystroke(bindings)}"
this.tooltip(jQuery.extend(tooltipDefaults, tooltipOptions))
this.tooltip(jQuery.extend({}, tooltipDefaults, tooltipOptions))
jQuery.fn.setTooltip.getKeystroke = getKeystroke
jQuery.fn.setTooltip.replaceModifiers = replaceModifiers