New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

intersection-observer

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intersection-observer - npm Package Compare versions

Comparing version 0.12.0 to 0.12.1

4

intersection-observer.js

@@ -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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc