intersection-observer
Advanced tools
Comparing version 0.12.0 to 0.12.1
@@ -824,4 +824,4 @@ /** | ||
} | ||
else if (typeof node.detatchEvent == 'function') { | ||
node.detatchEvent('on' + event, fn); | ||
else if (typeof node.detachEvent == 'function') { | ||
node.detachEvent('on' + event, fn); | ||
} | ||
@@ -828,0 +828,0 @@ } |
{ | ||
"name": "intersection-observer", | ||
"version": "0.12.0", | ||
"version": "0.12.1", | ||
"description": "A polyfill for IntersectionObserver", | ||
"main": "intersection-observer", | ||
"main": "intersection-observer.js", | ||
"repository": { | ||
@@ -7,0 +7,0 @@ "type": "git", |
@@ -64,5 +64,5 @@ # `IntersectionObserver` polyfill | ||
**Enabling polling for all instance:** | ||
**Enabling polling for all instances:** | ||
To enable polling for all instance, set a value for `POLL_INTERVAL` on the `IntersectionObserver` prototype: | ||
To enable polling for all instances, set a value for `POLL_INTERVAL` on the `IntersectionObserver` prototype: | ||
@@ -74,3 +74,3 @@ | ||
**Enabling polling for individual instance:** | ||
**Enabling polling for individual instances:** | ||
@@ -99,3 +99,3 @@ To enable polling on only specific instances, set a `POLL_INTERVAL` value on the instance itself: | ||
This is recommended in cases where the DOM will update frequently but you know those updates will have no affect on the position or your target elements. | ||
This is recommended in cases where the DOM will update frequently but you know those updates will have no effect on the position or your target elements. | ||
@@ -177,3 +177,3 @@ | ||
With these polyfills, `IntersectionObserver` has been tested an known to work in the following browsers: | ||
With these polyfills, `IntersectionObserver` has been tested and known to work in the following browsers: | ||
@@ -217,2 +217,2 @@ <table> | ||
If you run the tests in a browser that support `IntersectionObserver` natively, the tests will be run against the native implementation. If it doesn't the tests will be run against the polyfill. | ||
If you run the tests in a browser that supports `IntersectionObserver` natively, the tests will be run against the native implementation. If it doesn't, the tests will be run against the polyfill. |
161453