aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-10-26 14:32:03 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-10-26 14:32:03 +0200
commit8b4245ac7e8c746af97059ed3ef1c886bccdb903 (patch)
tree126b5b154b70a3de4913b626dfb84ee290142843
parent61b4b3e445b0065774f22151d02aab2e8e4be245 (diff)
downloadjquery-ui-8b4245ac7e8c746af97059ed3ef1c886bccdb903.tar.gz
jquery-ui-8b4245ac7e8c746af97059ed3ef1c886bccdb903.zip
Tooltip: Removing tooltipClass option; use .tooltip("widget").addClass("whatever") instead
-rw-r--r--tests/unit/tooltip/tooltip_defaults.js1
-rw-r--r--tests/unit/tooltip/tooltip_options.js13
-rw-r--r--ui/jquery.ui.tooltip.js4
3 files changed, 1 insertions, 17 deletions
diff --git a/tests/unit/tooltip/tooltip_defaults.js b/tests/unit/tooltip/tooltip_defaults.js
index bcdcd4307..c9960d334 100644
--- a/tests/unit/tooltip/tooltip_defaults.js
+++ b/tests/unit/tooltip/tooltip_defaults.js
@@ -5,7 +5,6 @@
var tooltip_defaults = {
disabled: false,
content: $.ui.tooltip.prototype.options.content,
- tooltipClass: "ui-widget-content",
position: {
my: "left center",
at: "right center",
diff --git a/tests/unit/tooltip/tooltip_options.js b/tests/unit/tooltip/tooltip_options.js
index f7abddb8b..41873ab5b 100644
--- a/tests/unit/tooltip/tooltip_options.js
+++ b/tests/unit/tooltip/tooltip_options.js
@@ -37,17 +37,4 @@ test("content: callback string", function() {
});
-test("tooltipClass, default", function() {
- $("#tooltipped1").tooltip().tooltip("open");
- same( $(".ui-tooltip").attr("class"), "ui-tooltip ui-widget ui-corner-all ui-widget-content");
- $(":ui-tooltip").tooltip("destroy");
-});
-test("tooltipClass, custom", function() {
- $("#tooltipped1").tooltip({
- tooltipClass: "pretty fancy"
- }).tooltip("open");
- same( $(".ui-tooltip").attr("class"), "ui-tooltip ui-widget ui-corner-all pretty fancy");
- $(":ui-tooltip").tooltip("destroy");
-});
-
})(jQuery);
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js
index 8341131ca..08d2e616a 100644
--- a/ui/jquery.ui.tooltip.js
+++ b/ui/jquery.ui.tooltip.js
@@ -23,7 +23,6 @@ var increments = 0;
$.widget("ui.tooltip", {
options: {
- tooltipClass: "ui-widget-content",
content: function() {
return $(this).attr("title");
},
@@ -39,8 +38,7 @@ $.widget("ui.tooltip", {
.attr("id", "ui-tooltip-" + increments++)
.attr("role", "tooltip")
.attr("aria-hidden", "true")
- .addClass("ui-tooltip ui-widget ui-corner-all")
- .addClass(this.options.tooltipClass)
+ .addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content")
.appendTo(document.body)
.hide();
this.tooltipContent = $("<div></div>")