Skip to content

Commit

Permalink
Document the VERSION property of the jQuery plugins; fixes #15202
Browse files Browse the repository at this point in the history
[skip sauce]
  • Loading branch information
cvrebert committed Dec 30, 2014
1 parent c3e6111 commit 7f6ba10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/_includes/js/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ <h3 id="js-events">Events</h3>
$('#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 // => "3.3.1"
{% endhighlight %}

<h3 id="js-disabled">No special fallbacks when JavaScript is disabled</h3>
Expand Down
1 change: 1 addition & 0 deletions docs/_includes/nav/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 7f6ba10

Please sign in to comment.