From: Chris Rebert Date: Sun, 27 Jul 2014 23:18:59 +0000 (-0700) Subject: Fix #14224: Correctly document args passed to function vals for `title` & `content... X-Git-Tag: v3.3.0~286^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff12a76e5aee26fda3452f88987c7d0d0c2c646a;p=thirdparty%2Fbootstrap.git Fix #14224: Correctly document args passed to function vals for `title` & `content` options of tooltips+popovers --- diff --git a/docs/_includes/js/popovers.html b/docs/_includes/js/popovers.html index 4ab7253b17..792ea21767 100644 --- a/docs/_includes/js/popovers.html +++ b/docs/_includes/js/popovers.html @@ -163,7 +163,7 @@ sagittis lacus vel augue laoreet rutrum faucibus."> ''

Default content value if data-content attribute isn't present.

-

If a function is given, it will be called with 1 argument, which is the element that the popover is attached to.

+

If a function is given, it will be called with its this reference set to the element that the popover is attached to.

@@ -210,7 +210,10 @@ sagittis lacus vel augue laoreet rutrum faucibus."> title string | function '' - Default title value if title attribute isn't present + +

Default title value if title attribute isn't present.

+

If a function is given, it will be called with its this reference set to the element that the popover is attached to.

+ trigger diff --git a/docs/_includes/js/tooltips.html b/docs/_includes/js/tooltips.html index 33743c4c21..9e6c0b8e0e 100644 --- a/docs/_includes/js/tooltips.html +++ b/docs/_includes/js/tooltips.html @@ -141,7 +141,10 @@ $('#example').tooltip(options) title string | function '' - Default title value if title attribute isn't present + +

Default title value if title attribute isn't present.

+

If a function is given, it will be called with its this reference set to the element that the tooltip is attached to.

+ trigger