From 5ccfd98c31c1a53f89a71f98307e1b52fa451988 Mon Sep 17 00:00:00 2001 From: Chris Rebert 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 %} + +

Version numbers

+ The version of each of Bootstrap's jQuery plugins can be accessed via the VERSION property of the plugin's constructor. For example, for the tooltip plugin: +{% highlight js %} +$.fn.tooltip.Constructor.VERSION // => "{{ site.current_version }}" {% endhighlight %}

No special fallbacks when JavaScript is disabled

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 @@
  • Programmatic API
  • No conflict
  • Events
  • +
  • Version numbers
  • When JavaScript is disabled
  • Third-party libraries