Commit 714cd6b6 authored by Chris Rebert's avatar Chris Rebert
Browse files

Merge pull request #15470 from twbs/document-version

Document the VERSION property of the jQuery plugins; 
parents c3e6111e 5ccfd98c
Showing with 7 additions and 0 deletions
+7 -0
...@@ -68,6 +68,12 @@ $.fn.bootstrapBtn = bootstrapButton // give $().bootstrapBtn the Boot ...@@ -68,6 +68,12 @@ $.fn.bootstrapBtn = bootstrapButton // give $().bootstrapBtn the Boot
$('#myModal').on('show.bs.modal', function (e) { $('#myModal').on('show.bs.modal', function (e) {
if (!data) return e.preventDefault() // stops modal from being shown 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 %} {% endhighlight %}
<h3 id="js-disabled">No special fallbacks when JavaScript is disabled</h3> <h3 id="js-disabled">No special fallbacks when JavaScript is disabled</h3>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<li><a href="#js-programmatic-api">Programmatic API</a></li> <li><a href="#js-programmatic-api">Programmatic API</a></li>
<li><a href="#js-noconflict">No conflict</a></li> <li><a href="#js-noconflict">No conflict</a></li>
<li><a href="#js-events">Events</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="#js-disabled">When JavaScript is disabled</a></li>
<li><a href="#callout-third-party-libs">Third-party libraries</a></li> <li><a href="#callout-third-party-libs">Third-party libraries</a></li>
</ul> </ul>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment