Permalink
Browse files

fix isPassive function

ref #1119
1 parent 0788ab9 commit 975bf52ddeaeedfa5f0e303e3057e32667784e57 @sculove sculove committed Dec 29, 2016
Showing with 5 additions and 5 deletions.
  1. +5 −5 demos/demoUtils.js
View
@@ -1,13 +1,13 @@
-// https://github.com/WICG/EventListenerOptions/pull/30
+// ref https://github.com/WICG/EventListenerOptions/pull/30
function isPassive() {
- var supportsCaptureOption = false;
+ var supportsPassiveOption = false;
try {
- addEventListener("test", null, Object.defineProperty({}, 'capture', {
+ addEventListener("test", null, Object.defineProperty({}, 'passive', {
get: function () {
- supportsCaptureOption = true;
+ supportsPassiveOption = true;
}
}));
} catch(e) {}
- return supportsCaptureOption;
+ return supportsPassiveOption;
}

0 comments on commit 975bf52

Please sign in to comment.