Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Nov 4, 2016
1 parent 947172f commit 9c8eaa9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/standard/gestures.html
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
})();

Expand Down

0 comments on commit 9c8eaa9

Please sign in to comment.