]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Update description of the events fired by dropdown plugin 9511/head
authorKevin Ball <kmball11@gmail.com>
Fri, 16 Dec 2016 00:08:34 +0000 (16:08 -0800)
committerKevin Ball <kmball11@gmail.com>
Fri, 16 Dec 2016 00:08:34 +0000 (16:08 -0800)
js/foundation.dropdown.js

index 7ad1230444281ffaf81f063b36a73ef2a0eb99fd..c54668d1dfe016c9abab79bcba9696aa135118ca 100644 (file)
@@ -260,7 +260,7 @@ class Dropdown {
   open() {
     // var _this = this;
     /**
-     * Fires to close other open dropdowns
+     * Fires to close other open dropdowns, typically when dropdown is opening
      * @event Dropdown#closeme
      */
     this.$element.trigger('closeme.zf.dropdown', this.$element.attr('id'));
@@ -317,6 +317,10 @@ class Dropdown {
       this.counter = 4;
       this.usedPositions.length = 0;
     }
+    /**
+     * Fires once the dropdown is no longer visible.
+     * @event Dropdown#hide
+     */
     this.$element.trigger('hide.zf.dropdown', [this.$element]);
 
     if (this.options.trapFocus) {