Skip to content

Commit

Permalink
Merge pull request #7418 from TvrtkoM/accordion-7413
Browse files Browse the repository at this point in the history
issue 7413 - animation loop
  • Loading branch information
zurbchris committed Dec 10, 2015
2 parents cf7853f + 822dcea commit f479ded
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions js/foundation.accordionMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,13 @@
* @param {jQuery} $target - the submenu to toggle
*/
AccordionMenu.prototype.toggle = function($target){
if (!$target.is(':hidden')) {
this.up($target);
}
else {
this.down($target);
if(!$target.is(':animated')) {
if (!$target.is(':hidden')) {
this.up($target);
}
else {
this.down($target);
}
}
};
/**
Expand Down

0 comments on commit f479ded

Please sign in to comment.