]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Correct reference to wrong 'this' in Reveal JavaScript, closes zurb/motion-ui#75
authorGeoff Kimball <geoff@zurb.com>
Tue, 8 Mar 2016 17:11:43 +0000 (09:11 -0800)
committerGeoff Kimball <geoff@zurb.com>
Wed, 16 Mar 2016 16:42:36 +0000 (09:42 -0700)
js/foundation.reveal.js

index f4148d2d83ee7cea7109aa47c8a7ed4b567a6460..046801cc867747584c8c3f2ae1dc9a0e823ca323 100644 (file)
@@ -224,7 +224,7 @@ class Reveal {
       if (this.options.overlay) {
         Foundation.Motion.animateIn(this.$overlay, 'fade-in');
       }
-      Foundation.Motion.animateIn(this.$element, this.options.animationIn, function() {
+      Foundation.Motion.animateIn(this.$element, this.options.animationIn, () => {
         this.focusableElements = Foundation.Keyboard.findFocusable(this.$element);
       });
     }