]> source.dussan.org Git - jquery-ui.git/commitdiff
Tooltip: Updated positioning - let user also customize of-property
authorjzaefferer <joern.zaefferer@gmail.com>
Tue, 20 Jul 2010 12:00:43 +0000 (14:00 +0200)
committerjzaefferer <joern.zaefferer@gmail.com>
Tue, 20 Jul 2010 12:00:43 +0000 (14:00 +0200)
ui/jquery.ui.tooltip.js

index 68d29f05fc71d04b8c16448b9a1af39e002aebad..caa36b2057e28740d1f35331af964f11d95ee4e7 100644 (file)
@@ -104,9 +104,9 @@ $.widget("ui.tooltip", {
                this.tooltip.css({
                        top: 0,
                        left: 0
-               }).show().position($.extend(this.options.position, {
+               }).show().position( $.extend({
                        of: target
-               })).hide();
+               }, this.options.position )).hide();
                
                this.tooltip.attr("aria-hidden", "false");
                target.attr("aria-describedby", this.tooltip.attr("id"));