From ff12a76e5aee26fda3452f88987c7d0d0c2c646a Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Sun, 27 Jul 2014 16:18:59 -0700 Subject: [PATCH] Fix #14224: Correctly document args passed to function vals for `title` & `content` options of tooltips+popovers --- docs/_includes/js/popovers.html | 7 +++++-- docs/_includes/js/tooltips.html | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) 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