]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Modified FastClick initialization to delay until document ready. 3643/head
authorSean Timm <sean@seantimm.com>
Sun, 24 Nov 2013 06:00:11 +0000 (23:00 -0700)
committerSean Timm <sean@seantimm.com>
Sun, 24 Nov 2013 06:00:11 +0000 (23:00 -0700)
js/foundation/foundation.js

index c2d031f3e951e1e5bfd24e452408385f538d3596..6641d99bbd171e3315c916f4ed006ffda4920f2c 100644 (file)
 
 
   // 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