From 6c8726eb02129f31a27e067dae81ce8c0d609702 Mon Sep 17 00:00:00 2001 From: Thibaut Date: Sat, 24 May 2014 10:52:17 -0400 Subject: [PATCH] Update FastClick --- assets/javascripts/vendor/fastclick.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/javascripts/vendor/fastclick.js b/assets/javascripts/vendor/fastclick.js index 5e6a7854..05b94b79 100755 --- a/assets/javascripts/vendor/fastclick.js +++ b/assets/javascripts/vendor/fastclick.js @@ -1,7 +1,7 @@ /** * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs. * - * @version 1.0.1 + * @version 1.0.2 * @codingstandard ftlabs-jsv2 * @copyright The Financial Times Limited [All Rights Reserved] * @license MIT License (see LICENSE.txt) @@ -12,7 +12,7 @@ /** - * Instantiate fast-clicking listeners on the specificed layer. + * Instantiate fast-clicking listeners on the specified layer. * * @constructor * @param {Element} layer The layer to listen on @@ -743,7 +743,7 @@ FastClick.notNeeded = function(layer) { return true; } // Chrome 32 and above with width=device-width or less don't need FastClick - if (chromeVersion > 31 && window.innerWidth <= window.screen.width) { + if (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) { return true; } } @@ -775,7 +775,7 @@ FastClick.attach = function(layer, options) { }; -if (typeof define !== 'undefined' && define.amd) { +if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) { // AMD. Register as an anonymous module. define(function() {