]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Improved Dropdown docs
authorAaron Stillwell <stillwell.mailbox@gmail.com>
Sun, 27 Dec 2015 12:29:07 +0000 (12:29 +0000)
committerAaron Stillwell <stillwell.mailbox@gmail.com>
Sun, 27 Dec 2015 12:29:07 +0000 (12:29 +0000)
Corrected reference to accordion, added triggers dependency and
clarified element parameter.

js/foundation.dropdown.js

index 997320420317ab426c2baf0db3ca77862c966d7f..1f3710daeec21fffc9b44cd0ae9fc25102d4355d 100644 (file)
@@ -3,13 +3,15 @@
  * @module foundation.dropdown
  * @requires foundation.util.keyboard
  * @requires foundation.util.box
+ * @requires foundation.util.triggers
  */
 !function($, Foundation){
   'use strict';
   /**
    * Creates a new instance of a dropdown.
    * @class
-   * @param {jQuery} element - jQuery object to make into an accordion menu.
+   * @param {jQuery} element - jQuery object to make into a dropdown menu.
+   *        Object should be of the dropdown panel, rather than its anchor.
    * @param {Object} options - Overrides to the default plugin settings.
    */
   function Dropdown(element, options){