]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
[Fix Issue #15701] Tooltip/popover destroy docs don't explain the delegation case 15742/head
authorKevin Kirsche <Kev.Kirsche+GitHub@gmail.com>
Tue, 3 Feb 2015 19:38:02 +0000 (14:38 -0500)
committerKevin Kirsche <kkirsche@ansfederal.com>
Tue, 3 Feb 2015 20:49:03 +0000 (15:49 -0500)
[Fix Issue #15701] Tooltip/popover destroy docs don't explain the delegation case.

Add to popovers

docs/_includes/js/popovers.html
docs/_includes/js/tooltips.html

index 21a2efc1ded50cf8b5d73782b54a962d1f5fca01..c827a7ff6940f1a5ca426e044e6557fcf78dd1b1 100644 (file)
@@ -264,7 +264,7 @@ sagittis lacus vel augue laoreet rutrum faucibus.">
   {% highlight js %}$('#element').popover('toggle'){% endhighlight %}
 
   <h4>.popover('destroy')</h4>
-  <p>Hides and destroys an element's popover.</p>
+  <p>Popovers that use delegation (which are created using <a href="#popovers-options">the <code>selector</code> option</a>) cannot be individually destroyed on descendant trigger elements.</p>
   {% highlight js %}$('#element').popover('destroy'){% endhighlight %}
 
   <h3 id="popovers-events">Events</h3>
index c4db01978cb42ba1858b803df459a69089f223ab..48534ed3e35eb9ca2b5bb1fa23e06aa83358f05e 100644 (file)
@@ -225,7 +225,7 @@ $('#example').tooltip(options)
   {% highlight js %}$('#element').tooltip('toggle'){% endhighlight %}
 
   <h4>.tooltip('destroy')</h4>
-  <p>Hides and destroys an element's tooltip.</p>
+  <p>Tooltips that use delegation (which are created using <a href="#tooltips-options">the <code>selector</code> option</a>) cannot be individually destroyed on descendant trigger elements.</p>
   {% highlight js %}$('#element').tooltip('destroy'){% endhighlight %}
 
   <h3 id="tooltips-events">Events</h3>