From 5ccfd98c31c1a53f89a71f98307e1b52fa451988 Mon Sep 17 00:00:00 2001 From: Chris Rebert <code@rebertia.com> Date: Tue, 30 Dec 2014 13:03:36 -0800 Subject: [PATCH] Document the VERSION property of the jQuery plugins; fixes #15202 [skip sauce] --- docs/_includes/js/overview.html | 6 ++++++ docs/_includes/nav/javascript.html | 1 + 2 files changed, 7 insertions(+) diff --git a/docs/_includes/js/overview.html b/docs/_includes/js/overview.html index b95bb6c5ff..4a35e87947 100644 --- a/docs/_includes/js/overview.html +++ b/docs/_includes/js/overview.html @@ -68,6 +68,12 @@ $.fn.bootstrapBtn = bootstrapButton // give $().bootstrapBtn the Boot $('#myModal').on('show.bs.modal', function (e) { if (!data) return e.preventDefault() // stops modal from being shown }) +{% endhighlight %} + + <h3 id="js-version-nums">Version numbers</h3> + The version of each of Bootstrap's jQuery plugins can be accessed via the <code>VERSION</code> property of the plugin's constructor. For example, for the tooltip plugin: +{% highlight js %} +$.fn.tooltip.Constructor.VERSION // => "{{ site.current_version }}" {% endhighlight %} <h3 id="js-disabled">No special fallbacks when JavaScript is disabled</h3> diff --git a/docs/_includes/nav/javascript.html b/docs/_includes/nav/javascript.html index 76e6732f8d..eba53771b0 100644 --- a/docs/_includes/nav/javascript.html +++ b/docs/_includes/nav/javascript.html @@ -6,6 +6,7 @@ <li><a href="#js-programmatic-api">Programmatic API</a></li> <li><a href="#js-noconflict">No conflict</a></li> <li><a href="#js-events">Events</a></li> + <li><a href="#js-version-nums">Version numbers</a></li> <li><a href="#js-disabled">When JavaScript is disabled</a></li> <li><a href="#callout-third-party-libs">Third-party libraries</a></li> </ul> -- GitLab