From d98a7d540ee764e79d2dbadc0e2617964207a53c Mon Sep 17 00:00:00 2001 From: Sean Timm Date: Sat, 23 Nov 2013 23:00:11 -0700 Subject: [PATCH] Modified FastClick initialization to delay until document ready. --- js/foundation/foundation.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/foundation/foundation.js b/js/foundation/foundation.js index c2d031f3e..6641d99bb 100644 --- a/js/foundation/foundation.js +++ b/js/foundation/foundation.js @@ -35,9 +35,11 @@ // Enable FastClick - if(typeof FastClick !== 'undefined') { - FastClick.attach(document.body); - } + $(function() { + if(typeof FastClick !== 'undefined') { + FastClick.attach(document.body); + } + }); // private Fast Selector wrapper, // returns jQuery object. Only use where -- 2.47.2