From: Kevin Kirsche Date: Tue, 3 Feb 2015 19:38:02 +0000 (-0500) Subject: [Fix Issue #15701] Tooltip/popover destroy docs don't explain the delegation case X-Git-Tag: v3.3.4~144^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be2206edfc7b7ca47aff0a6b772f87c5ee6f6f51;p=thirdparty%2Fbootstrap.git [Fix Issue #15701] Tooltip/popover destroy docs don't explain the delegation case [Fix Issue #15701] Tooltip/popover destroy docs don't explain the delegation case. Add to popovers --- diff --git a/docs/_includes/js/popovers.html b/docs/_includes/js/popovers.html index 21a2efc1de..c827a7ff69 100644 --- a/docs/_includes/js/popovers.html +++ b/docs/_includes/js/popovers.html @@ -264,7 +264,7 @@ sagittis lacus vel augue laoreet rutrum faucibus."> {% highlight js %}$('#element').popover('toggle'){% endhighlight %}

.popover('destroy')

-

Hides and destroys an element's popover.

+

Popovers that use delegation (which are created using the selector option) cannot be individually destroyed on descendant trigger elements.

{% highlight js %}$('#element').popover('destroy'){% endhighlight %}

Events

diff --git a/docs/_includes/js/tooltips.html b/docs/_includes/js/tooltips.html index c4db01978c..48534ed3e3 100644 --- a/docs/_includes/js/tooltips.html +++ b/docs/_includes/js/tooltips.html @@ -225,7 +225,7 @@ $('#example').tooltip(options) {% highlight js %}$('#element').tooltip('toggle'){% endhighlight %}

.tooltip('destroy')

-

Hides and destroys an element's tooltip.

+

Tooltips that use delegation (which are created using the selector option) cannot be individually destroyed on descendant trigger elements.

{% highlight js %}$('#element').tooltip('destroy'){% endhighlight %}

Events