Merge pull request #17613 from Johann-S/fixTooltipDestroy

Fix #17544: Update doc for tooltips and popover about dispose method
This commit is contained in:
Chris Rebert 2015-09-16 11:41:28 -07:00
commit 62199b96dc
2 changed files with 4 additions and 4 deletions

View File

@ -304,12 +304,12 @@ Toggles an element's popover. **Returns to the caller before the popover has act
{% highlight js %}$('#element').popover('toggle'){% endhighlight %}
#### .popover('destroy')
#### .popover('dispose')
Hides and destroys an element's popover. Popvoers that use delegation (which are created using [the `selector` option](#options)) cannot be individually destroyed on descendant trigger elements.
{% highlight js %}$('#element').popover('destroy'){% endhighlight %}
{% highlight js %}$('#element').popover('dispose'){% endhighlight %}
### Events

View File

@ -262,11 +262,11 @@ Toggles an element's tooltip. **Returns to the caller before the tooltip has act
{% highlight js %}$('#element').tooltip('toggle'){% endhighlight %}
#### .tooltip('destroy')
#### .tooltip('dispose')
Hides and destroys an element's tooltip. Tooltips that use delegation (which are created using [the `selector` option](#options)) cannot be individually destroyed on descendant trigger elements.
{% highlight js %}$('#element').tooltip('destroy'){% endhighlight %}
{% highlight js %}$('#element').tooltip('dispose'){% endhighlight %}
### Events