From: Sean Timm Date: Sun, 24 Nov 2013 06:00:11 +0000 (-0700) Subject: Modified FastClick initialization to delay until document ready. X-Git-Tag: 5.0.3~120^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3643%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Modified FastClick initialization to delay until document ready. --- 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