]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Explain the "dispose" method appropriately (#30838)
authorRohit Sharma <rohit2sharma95@gmail.com>
Fri, 2 Oct 2020 11:58:59 +0000 (17:28 +0530)
committerGitHub <noreply@github.com>
Fri, 2 Oct 2020 11:58:59 +0000 (14:58 +0300)
site/content/docs/5.0/components/alerts.md
site/content/docs/5.0/components/buttons.md
site/content/docs/5.0/components/carousel.md
site/content/docs/5.0/components/collapse.md
site/content/docs/5.0/components/dropdowns.md
site/content/docs/5.0/components/modal.md
site/content/docs/5.0/components/popovers.md
site/content/docs/5.0/components/scrollspy.md
site/content/docs/5.0/components/tooltips.md

index a2f701267d0269f6760101c83281974ddd83463e..994c5b1a6b68bd858e49403bed49db6f3996253b 100644 (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>
index eaede8f4eb999dc81919c612406d885d9abf2997..4b4522ab77f03815b90e3ba3d57135a092ec50d7 100644 (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>
index 3222e06b977b2bbe12a8f912b3c16bb44145d5da..1ef2055496a512a42c3fd22cafdbab8c5445d564 100644 (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>
index 349d26da55883b3a0a8d0d4f5a0bc9db12828dbe..a6109e7f3e959450bd617e192b8dd37ffc1caf5a 100644 (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>
index ca5064b508000d6ddfe32363e2a1311b3ef76b0e..fb200f267f2fed28af18f19ff9c23ae025ace258 100644 (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>
index d1815e1703f4ac605f9b99a11f9825329a0c5470..8064999ec99c5008856f9dbbf22d1ab8f3d60681 100644 (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 >}}
 
index 4af07a2232d3883d88bc4e4ffe480b5c6294d587..ed7dfb1b2d83313777f2e85fa9467209156714c6 100644 (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 >}}
 
index 245ac7aab22459c8c7d7f8a42c9ea64bb1ca3c90..2e2a5133457ffd322cf36536627c7fbbd1042d34 100644 (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
 
index 21c952d4660f91825ad02df2b88477e34ae81a5a..a0a6f2a18958b6b2b52f628038a76b1bdd2f1f3f 100644 (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 >}}