]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
consolidate relatedTarget docs in dropdown event docs 15090/head
authorChris Rebert <code@rebertia.com>
Wed, 12 Nov 2014 03:38:06 +0000 (19:38 -0800)
committerChris Rebert <code@rebertia.com>
Wed, 12 Nov 2014 03:38:06 +0000 (19:38 -0800)
docs/_includes/js/dropdowns.html

index 826fe6c08a92957d9f1f2bd6c91b138af73c4fb7..853030b5fbb9f91fbebfa854129957559ef720a0 100644 (file)
@@ -164,6 +164,7 @@ $('.dropdown-toggle').dropdown()
 
   <h3>Events</h3>
   <p>All dropdown events are fired at the <code>.dropdown-menu</code>'s parent element.</p>
+  <p>All dropdown events have a <code>relatedTarget</code> property, whose value is the toggling anchor element.</p>
   <div class="table-responsive">
     <table class="table table-bordered table-striped">
       <thead>
@@ -175,19 +176,19 @@ $('.dropdown-toggle').dropdown()
       <tbody>
         <tr>
           <td>show.bs.dropdown</td>
-          <td>This event fires immediately when the show instance method is called. The toggling anchor element is available as the <code>relatedTarget</code> property of the event.</td>
+          <td>This event fires immediately when the show instance method is called.</td>
         </tr>
         <tr>
           <td>shown.bs.dropdown</td>
-          <td>This event is fired when the dropdown has been made visible to the user (will wait for CSS transitions, to complete).  The toggling anchor element is available as the <code>relatedTarget</code> property of the event.</td>
+          <td>This event is fired when the dropdown has been made visible to the user (will wait for CSS transitions, to complete).</td>
         </tr>
         <tr>
           <td>hide.bs.dropdown</td>
-          <td>This event is fired immediately when the hide instance method has been called. The toggling anchor element is available as the <code>relatedTarget</code> property of the event.</td>
+          <td>This event is fired immediately when the hide instance method has been called.</td>
         </tr>
         <tr>
           <td>hidden.bs.dropdown</td>
-          <td>This event is fired when the dropdown has finished being hidden from the user (will wait for CSS transitions, to complete). The toggling anchor element is available as the <code>relatedTarget</code> property of the event.</td>
+          <td>This event is fired when the dropdown has finished being hidden from the user (will wait for CSS transitions, to complete).</td>
         </tr>
       </tbody>
     </table>