From: Chris Oyler Date: Tue, 15 Dec 2015 01:32:51 +0000 (-0800) Subject: fixes #7528, at the expense of hardware acceleration. jquery does not always play... X-Git-Tag: v6.0.6~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f9e599a1c20017a5dbfe12a70f4f436ac5353bd;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fixes #7528, at the expense of hardware acceleration. jquery does not always play nice with requestAnimationFrame --- diff --git a/js/foundation.accordion.js b/js/foundation.accordion.js index 79868ec6e..37d50f28c 100644 --- a/js/foundation.accordion.js +++ b/js/foundation.accordion.js @@ -161,13 +161,13 @@ .addBack() .parent().addClass('is-active'); - Foundation.Move(_this.options.slideSpeed, $target, function(){ + // Foundation.Move(_this.options.slideSpeed, $target, function(){ $target.slideDown(_this.options.slideSpeed); - }); + // }); - if(!firstTime){ - Foundation._reflow(this.$element.attr('data-accordion')); - } + // if(!firstTime){ + // Foundation._reflow(this.$element.attr('data-accordion')); + // } $('#' + $target.attr('aria-labelledby')).attr({ 'aria-expanded': true, 'aria-selected': true @@ -194,9 +194,9 @@ return; } - Foundation.Move(this.options.slideSpeed, $target, function(){ + // Foundation.Move(this.options.slideSpeed, $target, function(){ $target.slideUp(_this.options.slideSpeed); - }); + // }); $target.attr('aria-hidden', true) .parent().removeClass('is-active');