Skip to content

Commit

Permalink
fix: Remove listener used to test if passive listeners are supported (#…
Browse files Browse the repository at this point in the history
…4787)

Once you have successfully tested that passive listeners are supported you should remove the test listeners :)
  • Loading branch information
Mulder90 authored and gkatsev committed Dec 4, 2017
1 parent 2337c1b commit e582c3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/utils/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ let _supportsPassive = false;
});

window.addEventListener('test', null, opts);
window.removeEventListener('test', null, opts);
} catch (e) {
// disregard
}
Expand Down

0 comments on commit e582c3c

Please sign in to comment.