From b67a4be8de353bfab41443d705a6f595391cc482 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 30 Oct 2017 23:53:57 +0200 Subject: Minor Markdown consistency cleanup. (#24605) --- docs/4.0/getting-started/javascript.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/4.0/getting-started/javascript.md') diff --git a/docs/4.0/getting-started/javascript.md b/docs/4.0/getting-started/javascript.md index a0094d154..ed2d18bf9 100644 --- a/docs/4.0/getting-started/javascript.md +++ b/docs/4.0/getting-started/javascript.md @@ -67,6 +67,7 @@ Each plugin also exposes its raw constructor on a `Constructor` property: `$.fn. All programmatic API methods are **asynchronous** and returns to the caller once the transition is started but **before it ends**. In order to execute an action once the transition is complete, you can listen to the corresponding event. + {% highlight js %} $('#myCollapse').on('shown.bs.collapse', function (e) { // Action to execute once the collapsible area is expanded @@ -74,6 +75,7 @@ $('#myCollapse').on('shown.bs.collapse', function (e) { {% endhighlight %} In addition a method call on a **transitioning component will be ignored**. + {% highlight js %} $('#myCarousel').on('slid.bs.carousel', function (e) { $('#myCarousel').carousel('2') // Will slide to the slide 2 as soon as the transition to slide 1 is finished -- cgit v1.2.3