0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-18 10:52:19 +01:00

Explain the "dispose" method appropriately (#30838)

This commit is contained in:
Rohit Sharma 2020-10-02 17:28:59 +05:30 committed by GitHub
parent c5966de273
commit e4be0640ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 9 additions and 9 deletions

View File

@ -127,7 +127,7 @@ This makes an alert listen for click events on descendant elements which have th
<code>dispose</code>
</td>
<td>
Destroys an element's alert.
Destroys an element's alert. (Removes stored data on the DOM element)
</td>
</tr>
<tr>

View File

@ -155,7 +155,7 @@ var bsButton = new bootstrap.Button(button)
<code>dispose</code>
</td>
<td>
Destroys an element's button.
Destroys an element's button. (Removes stored data on the DOM element)
</td>
</tr>
</tbody>

View File

@ -368,7 +368,7 @@ var carousel = new bootstrap.Carousel(myCarousel, {
</tr>
<tr>
<td><code>dispose</code></td>
<td>Destroys an element's carousel.</td>
<td>Destroys an element's carousel. (Removes stored data on the DOM element)</td>
</tr>
<tr>
<td><code>getInstance</code></td>

View File

@ -224,7 +224,7 @@ var bsCollapse = new bootstrap.Collapse(myCollapse, {
</tr>
<tr>
<td><code>dispose</code></td>
<td>Destroys an element's collapse.</td>
<td>Destroys an element's collapse. (Removes stored data on the DOM element)</td>
</tr>
<tr>
<td><code>getInstance</code></td>

View File

@ -949,7 +949,7 @@ Note when `boundary` is set to any value other than `'scrollParent'`, the style
<tr>
<td><code>dispose</code></td>
<td>
Destroys an element's dropdown.
Destroys an element's dropdown. (Removes stored data on the DOM element)
</td>
</tr>
<tr>

View File

@ -928,7 +928,7 @@ Manually readjust the modal's position if the height of a modal changes while it
#### dispose
Destroys an element's modal.
Destroys an element's modal. (Removes stored data on the DOM element)
{{< highlight js >}}myModal.dispose(){{< /highlight >}}

View File

@ -323,7 +323,7 @@ Toggles an element's popover. **Returns to the caller before the popover has act
#### dispose
Hides and destroys an element's popover. Popovers that use delegation (which are created using [the `selector` option](#options)) cannot be individually destroyed on descendant trigger elements.
Hides and destroys an element's popover (Removes stored data on the DOM element). Popovers that use delegation (which are created using [the `selector` option](#options)) cannot be individually destroyed on descendant trigger elements.
{{< highlight js >}}myPopover.dispose(){{< /highlight >}}

View File

@ -290,7 +290,7 @@ dataSpyList.forEach(function (dataSpyEl) {
#### dispose
Destroys an element's scrollspy.
Destroys an element's scrollspy. (Removes stored data on the DOM element)
#### getInstance

View File

@ -330,7 +330,7 @@ Toggles an element's tooltip. **Returns to the caller before the tooltip has act
#### 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.
Hides and destroys an element's tooltip (Removes stored data on the DOM element). Tooltips that use delegation (which are created using [the `selector` option](#options)) cannot be individually destroyed on descendant trigger elements.
{{< highlight js >}}tooltip.dispose(){{< /highlight >}}