]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fixes #7528, at the expense of hardware acceleration. jquery does not always play...
authorChris Oyler <chris@zurb.com>
Tue, 15 Dec 2015 01:32:51 +0000 (17:32 -0800)
committerChris Oyler <chris@zurb.com>
Tue, 15 Dec 2015 01:33:42 +0000 (17:33 -0800)
js/foundation.accordion.js

index 79868ec6e804c375ace638a037cb7c136729eddd..37d50f28c4a1d28dbb67586eadf9f4a9008ec712 100644 (file)
       .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
       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');