From 48c5efa4c3c439d8720b8475ec3e372c6974a12a Mon Sep 17 00:00:00 2001 From: Pierre Vanduynslager Date: Tue, 28 Mar 2017 17:43:16 -0400 Subject: Fix JS components console error "Error: is transitioning" --- docs/components/carousel.md | 9 ++++++--- docs/components/collapse.md | 9 ++++++--- docs/components/modal.md | 3 +++ docs/components/navs.md | 3 +++ docs/components/popovers.md | 3 +++ docs/components/tooltips.md | 3 +++ 6 files changed, 24 insertions(+), 6 deletions(-) (limited to 'docs/components') diff --git a/docs/components/carousel.md b/docs/components/carousel.md index 5649dfac9..405aee18c 100644 --- a/docs/components/carousel.md +++ b/docs/components/carousel.md @@ -229,6 +229,9 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap ### Methods +{% capture callout-include %}{% include callout-danger-async-methods.md %}{% endcapture %} +{{ callout-include | markdownify }} + #### `.carousel(options)` Initializes the carousel with an optional options `object` and starts cycling through items. @@ -249,15 +252,15 @@ Stops the carousel from cycling through items. #### `.carousel(number)` -Cycles the carousel to a particular frame (0 based, similar to an array). +Cycles the carousel to a particular frame (0 based, similar to an array). **Returns to the caller before the target item has been shown** (i.e. before the `slid.bs.carousel` event occurs). #### `.carousel('prev')` -Cycles to the previous item. +Cycles to the previous item. **Returns to the caller before the previous item has been shown** (i.e. before the `slid.bs.carousel` event occurs). #### `.carousel('next')` -Cycles to the next item. +Cycles to the next item. **Returns to the caller before the next item has been shown** (i.e. before the `slid.bs.carousel` event occurs). ### Events diff --git a/docs/components/collapse.md b/docs/components/collapse.md index 370cb760e..0a49db562 100644 --- a/docs/components/collapse.md +++ b/docs/components/collapse.md @@ -178,6 +178,9 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap ### Methods +{% capture callout-include %}{% include callout-danger-async-methods.md %}{% endcapture %} +{{ callout-include | markdownify }} + #### `.collapse(options)` Activates your content as a collapsible element. Accepts an optional options `object`. @@ -190,15 +193,15 @@ $('#myCollapsible').collapse({ #### `.collapse('toggle')` -Toggles a collapsible element to shown or hidden. +Toggles a collapsible element to shown or hidden. **Returns to the caller before the collapsible element has actually been shown or hidden (i.e. before the `shown.bs.collapse` or `hidden.bs.collapse` event occurs). #### `.collapse('show')` -Shows a collapsible element. +Shows a collapsible element. **Returns to the caller before the collapsible element has actually been shown** (i.e. before the `shown.bs.collapse` event occurs). #### `.collapse('hide')` -Hides a collapsible element. +Hides a collapsible element. **Returns to the caller before the collapsible element has actually been hidden** (i.e. before the `hidden.bs.collapse` event occurs). ### Events diff --git a/docs/components/modal.md b/docs/components/modal.md index a4e28bcec..19254b880 100644 --- a/docs/components/modal.md +++ b/docs/components/modal.md @@ -547,6 +547,9 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap ### Methods +{% capture callout-include %}{% include callout-danger-async-methods.md %}{% endcapture %} +{{ callout-include | markdownify }} + #### `.modal(options)` Activates your content as a modal. Accepts an optional options `object`. diff --git a/docs/components/navs.md b/docs/components/navs.md index 047eb2205..e47a5a9e6 100644 --- a/docs/components/navs.md +++ b/docs/components/navs.md @@ -404,6 +404,9 @@ To make tabs fade in, add `.fade` to each `.tab-pane`. The first tab pane must a ### Methods +{% capture callout-include %}{% include callout-danger-async-methods.md %}{% endcapture %} +{{ callout-include | markdownify }} + #### $().tab Activates a tab element and content container. Tab should have either a `data-target` or an `href` targeting a container node in the DOM. diff --git a/docs/components/popovers.md b/docs/components/popovers.md index ec5b4970d..5f26e4bbd 100644 --- a/docs/components/popovers.md +++ b/docs/components/popovers.md @@ -277,6 +277,9 @@ Options for individual popovers can alternatively be specified through the use o ### Methods +{% capture callout-include %}{% include callout-danger-async-methods.md %}{% endcapture %} +{{ callout-include | markdownify }} + #### `$().popover(options)` Initializes popovers for an element collection. diff --git a/docs/components/tooltips.md b/docs/components/tooltips.md index eaab24da5..a8b251c09 100644 --- a/docs/components/tooltips.md +++ b/docs/components/tooltips.md @@ -254,6 +254,9 @@ Options for individual tooltips can alternatively be specified through the use o ### Methods +{% capture callout-include %}{% include callout-danger-async-methods.md %}{% endcapture %} +{{ callout-include | markdownify }} + #### `$().tooltip(options)` Attaches a tooltip handler to an element collection. -- cgit v1.2.3