From: Kevin Ball Date: Fri, 16 Dec 2016 00:08:34 +0000 (-0800) Subject: Update description of the events fired by dropdown plugin X-Git-Tag: v6.3.1-rc1~12^2~15^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9511%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Update description of the events fired by dropdown plugin --- diff --git a/js/foundation.dropdown.js b/js/foundation.dropdown.js index 7ad123044..c54668d1d 100644 --- a/js/foundation.dropdown.js +++ b/js/foundation.dropdown.js @@ -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) {