]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
docs: remove outdated comments in Accordion related to the initial state
authorNicolas Coden <nicolas@ncoden.fr>
Thu, 30 Aug 2018 22:06:29 +0000 (00:06 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Thu, 30 Aug 2018 22:06:29 +0000 (00:06 +0200)
js/foundation.accordion.js

index 3df759d535a7325e74b9d7d07c721a8ea0d5c6e5..439cf0c29c6f992c168b3905666d1437640c79a0 100644 (file)
@@ -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;