aboutsummaryrefslogtreecommitdiff
path: root/javascript.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-07-25 09:57:40 -0700
committerMark Otto <[email protected]>2013-07-25 09:57:40 -0700
commitf3aaba0be2394bad27140a242431bc7afe518a13 (patch)
treecdd4f22281411cb7ea583b3e0cc99dfb0fa3968b /javascript.html
parent72237acf524618ad941ff7a64e89fa64b5a4c12b (diff)
parente9c83647afb90b95ab8d8e86fa33bb5c71768f2d (diff)
downloadbootstrap-f3aaba0be2394bad27140a242431bc7afe518a13.tar.xz
bootstrap-f3aaba0be2394bad27140a242431bc7afe518a13.zip
Merge branch '3.0.0-wip' of github.com:twitter/bootstrap into 3.0.0-wip
Diffstat (limited to 'javascript.html')
-rw-r--r--javascript.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/javascript.html b/javascript.html
index 72b37d4fb..23fe67719 100644
--- a/javascript.html
+++ b/javascript.html
@@ -29,14 +29,14 @@ lead: "Bring Bootstrap's components to life with over a dozen custom jQuery plug
<h3 id="js-data-attrs">Data attributes</h3>
<p>You can use all Bootstrap plugins purely through the markup API without writing a single line of JavaScript. This is Bootstrap's first class API and should be your first consideration when using a plugin.</p>
- <p>That said, in some situations it may be desirable to turn this functionality off. Therefore, we also provide the ability to disable the data attribute API by unbinding all events on the body namespaced with <code>data-api</code>. This looks like this:
+ <p>That said, in some situations it may be desirable to turn this functionality off. Therefore, we also provide the ability to disable the data attribute API by unbinding all events on the document namespaced with <code>data-api</code>. This looks like this:
{% highlight js %}
-$('body').off('.data-api')
+$(document).off('.data-api')
{% endhighlight %}
<p>Alternatively, to target a specific plugin, just include the plugin's name as a namespace along with the data-api namespace like this:</p>
{% highlight js %}
-$('body').off('.alert.data-api')
+$(document).off('.alert.data-api')
{% endhighlight %}
<h3 id="js-programmatic-api">Programmatic API</h3>