r3524 committed - Update tooltip for new widget factory.
Revision: 3524
Author: scott.gonzalez
Date: Tue Dec 22 20:10:26 2009
Log: Update tooltip for new widget factory.
http://code.google.com/p/jquery-ui/source/detail?r=3524
Modified:
/branches/dev/ui/jquery.ui.tooltip.js
=======================================
--- /branches/dev/ui/jquery.ui.tooltip.js Wed Dec 16 17:44:16 2009
+++ /branches/dev/ui/jquery.ui.tooltip.js Tue Dec 22 20:10:26 2009
@@ -17,6 +17,17 @@
var increments = 0;
$.widget("ui.tooltip", {
+ options: {
+ tooltipClass: "ui-widget-content",
+ content: function() {
+ return $(this).attr("title");
+ },
+ position: {
+ my: "left center",
+ at: "right center",
+ offset: "15 0"
+ }
+ },
_init: function() {
var self = this;
this.tooltip = $("<div/>").attr("id", "ui-tooltip-" +
increments++).attr("role", "tooltip").attr("aria-hidden", "true").addClass("ui-tooltip
ui-widget
ui-corner-all").addClass(this.options.tooltipClass).appendTo(document.body).hide();
@@ -109,16 +120,4 @@
});
-$.ui.tooltip.defaults = {
- tooltipClass: "ui-widget-content",
- content: function() {
- return $(this).attr("title");
- },
- position: {
- my: "left center",
- at: "right center",
- offset: "15 0"
- }
-}
-
})(jQuery);
--