From 5ccfd98c31c1a53f89a71f98307e1b52fa451988 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Tue, 30 Dec 2014 13:03:36 -0800 Subject: Document the VERSION property of the jQuery plugins; fixes #15202 [skip sauce] --- docs/_includes/js/overview.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/_includes/js/overview.html') diff --git a/docs/_includes/js/overview.html b/docs/_includes/js/overview.html index b95bb6c5f..4a35e8794 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

-- cgit v1.2.3 From 19222bfe8962c9987aa96d7bdeb0b5f2ce1505ba Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Sat, 3 Jan 2015 22:05:49 -0800 Subject: overview.html: add missing

--- docs/_includes/js/overview.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/_includes/js/overview.html') diff --git a/docs/_includes/js/overview.html b/docs/_includes/js/overview.html index 4a35e8794..89030966c 100644 --- a/docs/_includes/js/overview.html +++ b/docs/_includes/js/overview.html @@ -71,7 +71,7 @@ $('#myModal').on('show.bs.modal', function (e) { {% 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: +

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 %} -- cgit v1.2.3