0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Merge pull request #15470 from twbs/document-version

Document the VERSION property of the jQuery plugins;
This commit is contained in:
Chris Rebert 2014-12-30 13:32:44 -08:00
commit 714cd6b608
2 changed files with 7 additions and 0 deletions

View File

@ -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>

View File

@ -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>