From: Nicolas Coden Date: Thu, 30 Aug 2018 22:06:29 +0000 (+0200) Subject: docs: remove outdated comments in Accordion related to the initial state X-Git-Tag: v6.6.0~3^2~96^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b819fafba;p=thirdparty%2Ffoundation%2Ffoundation-sites.git docs: remove outdated comments in Accordion related to the initial state --- diff --git a/js/foundation.accordion.js b/js/foundation.accordion.js index 3df759d53..439cf0c29 100644 --- a/js/foundation.accordion.js +++ b/js/foundation.accordion.js @@ -192,10 +192,6 @@ class Accordion extends Plugin { * @function */ down($target) { - /** - * checking firstTime allows for initial render of the accordion - * to render preset is-active panes. - */ if ($target.closest('[data-accordion]').is('[disabled]')) { console.info('Cannot call down on an accordion that is disabled.'); return; @@ -216,7 +212,6 @@ class Accordion extends Plugin { * @function */ up($target) { - if (this.$element.is('[disabled]')) { console.info('Cannot call up on an accordion that is disabled.'); return;