From: Mark Otto Date: Fri, 7 Feb 2014 09:10:21 +0000 (-0800) Subject: Fixes #12611: Mention limitation of one plugin's data attributes per element X-Git-Tag: v3.1.1~14^2~22^2~3^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebd132ce68b79a95daf6ef91225304e9656cd4a4;p=thirdparty%2Fbootstrap.git Fixes #12611: Mention limitation of one plugin's data attributes per element --- diff --git a/docs/javascript.html b/docs/javascript.html index 8932ff295a..24c1eb79dd 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -15,8 +15,13 @@ lead: "Bring Bootstrap's components to life with over a dozen custom jQuery plug

Plugins can be included individually (using Bootstrap's individual *.js files), or all at once (using bootstrap.js or the minified bootstrap.min.js).

-

Do not attempt to include both.

-

Both bootstrap.js and bootstrap.min.js contain all plugins in a single file.

+

Using the compiled JavaScript

+

Both bootstrap.js and bootstrap.min.js contain all plugins in a single file. Include only one.

+
+ +
+

Component data attributes

+

Don't mix data attributes from separate plugins on the same component. For example, a button cannot have a tooltip and toggle a modal. To accomplish this, use a wrapping element.