From 9c8eaa9d4b767f9c3a25f5310857585934e2ace2 Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Thu, 3 Nov 2016 17:48:58 -0700 Subject: [PATCH] fix lint error --- src/standard/gestures.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/standard/gestures.html b/src/standard/gestures.html index 5681e907b0..2e41c258f0 100644 --- a/src/standard/gestures.html +++ b/src/standard/gestures.html @@ -38,14 +38,14 @@ } })(); + /* eslint no-empty: ["error", { "allowEmptyCatch": true }] */ // check for passive event listeners - var SUPPORTS_PASSIVE = (function() { - var sp = false; + var SUPPORTS_PASSIVE = false; + (function() { try { - var opts = Object.defineProperty({}, 'passive', {get: function() {sp = true;}}) + var opts = Object.defineProperty({}, 'passive', {get: function() {SUPPORTS_PASSIVE = true;}}) window.addEventListener('test', null, opts); window.removeEventListener('test', null, opts); - return sp; } catch(e) {} })();