diff --git a/docs/javascript.html b/docs/javascript.html index 0757ace423..955ad31f82 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -23,7 +23,7 @@ lead: "Bring Bootstrap's components to life with over a dozen custom jQuery plug

Data attributes

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.

-

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 `'data-api'`. This looks like this: +

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 data-api. This looks like this: {% highlight js %} $('body').off('.data-api') {% endhighlight %} @@ -46,7 +46,7 @@ $("#myModal").modal({ keyboard: false }) // initialized with no keyboard $("#myModal").modal('show') // initializes and invokes show immediately

{% endhighlight %} -

Each plugin also exposes its raw constructor on a `Constructor` property: $.fn.popover.Constructor. If you'd like to get a particular plugin instance, retrieve it directly from an element: $('[rel=popover]').data('popover').

+

Each plugin also exposes its raw constructor on a Constructor property: $.fn.popover.Constructor. If you'd like to get a particular plugin instance, retrieve it directly from an element: $('[rel=popover]').data('popover').

No conflict

Sometimes it is necessary to use Bootstrap plugins with other UI frameworks. In these circumstances, namespace collisions can occasionally occur. If this happens, you may call .noConflict on the plugin you wish to revert the value of.

@@ -792,7 +792,7 @@ $('#example').tooltip(options) title string | function '' - default title value if `title` tag isn't present + default title value if title tag isn't present trigger @@ -976,13 +976,13 @@ $('#example').tooltip(options) title string | function '' - default title value if `title` attribute isn't present + default title value if title attribute isn't present content string | function '' - default content value if `data-content` attribute isn't present + default content value if data-content attribute isn't present delay