diff options
| author | Chris Rebert <[email protected]> | 2014-12-30 13:03:36 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-12-30 13:32:28 -0800 |
| commit | 5ccfd98c31c1a53f89a71f98307e1b52fa451988 (patch) | |
| tree | 569d126ac7f24348fd1ead50b9e41822c5c712ba /docs/_includes/js | |
| parent | c3e6111eef4778e14d97cb932b7d1ee13443b5c0 (diff) | |
| download | bootstrap-5ccfd98c31c1a53f89a71f98307e1b52fa451988.tar.xz bootstrap-5ccfd98c31c1a53f89a71f98307e1b52fa451988.zip | |
Document the VERSION property of the jQuery plugins; fixes #15202
[skip sauce]
Diffstat (limited to 'docs/_includes/js')
| -rw-r--r-- | docs/_includes/js/overview.html | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ -70,6 +70,12 @@ $('#myModal').on('show.bs.modal', function (e) { }) {% 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> <p>Bootstrap's plugins don't fall back particularly gracefully when JavaScript is disabled. If you care about the user experience in this case, use <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript"><code><noscript></code></a> to explain the situation (and how to re-enable JavaScript) to your users, and/or add your own custom fallbacks.</p> |
