From 608fc398a7cbb455d1f1c5477d149c136b2c032c Mon Sep 17 00:00:00 2001 From: codymorgan Date: Wed, 21 May 2014 09:18:03 -0400 Subject: [PATCH] Anchored image breaks timer - bugfix If the slider image is wrapped in an anchor tag the timer never starts because line 278 was looking for a direct child image. changed to .find('img') to locate inner images --- js/foundation/foundation.orbit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation/foundation.orbit.js b/js/foundation/foundation.orbit.js index 35147d812..5b5e66714 100644 --- a/js/foundation/foundation.orbit.js +++ b/js/foundation/foundation.orbit.js @@ -275,7 +275,7 @@ self.build_markup(); if (settings.timer) { self.cache.timer = self.create_timer(); - Foundation.utils.image_loaded(this.slides().children('img'), self.cache.timer.start); + Foundation.utils.image_loaded(this.slides().find('img'), self.cache.timer.start); } animate = new CSSAnimation(settings, slides_container); -- 2.47.2