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

to
0.4.3

13

intersection-observer-test.js
/**
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Licensed under the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE.
*
* http://www.apache.org/licenses/LICENSE-2.0
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

@@ -649,3 +642,3 @@

// created outside of the addFixtures() function to catch the IE11 error
// described here: https://github.com/WICG/IntersectionObserver/pull/205
// described here: https://github.com/w3c/IntersectionObserver/pull/205
var targetEl5 = document.createElement('div');

@@ -652,0 +645,0 @@ targetEl5.setAttribute('id', 'target5');

/**
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Licensed under the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
*/

@@ -28,3 +21,3 @@

// Minimal polyfill for Edge 15's lack of `isIntersecting`
// See: https://github.com/WICG/IntersectionObserver/issues/211
// See: https://github.com/w3c/IntersectionObserver/issues/211
if (!('isIntersecting' in window.IntersectionObserverEntry.prototype)) {

@@ -53,3 +46,3 @@ Object.defineProperty(window.IntersectionObserverEntry.prototype,

* Creates the global IntersectionObserverEntry constructor.
* https://wicg.github.io/IntersectionObserver/#intersection-observer-entry
* https://w3c.github.io/IntersectionObserver/#intersection-observer-entry
* @param {Object} entry A dictionary of instance properties.

@@ -84,3 +77,3 @@ * @constructor

* Creates the global IntersectionObserver constructor.
* https://wicg.github.io/IntersectionObserver/#intersection-observer-interface
* https://w3c.github.io/IntersectionObserver/#intersection-observer-interface
* @param {Function} callback The function to be invoked after intersection

@@ -363,3 +356,3 @@ * changes have queued. The function is not invoked if the queue has

* TODO(philipwalton): at this time clip-path is not considered.
* https://wicg.github.io/IntersectionObserver/#calculate-intersection-rect-algo
* https://w3c.github.io/IntersectionObserver/#calculate-intersection-rect-algo
* @param {Element} target The target DOM element

@@ -653,3 +646,3 @@ * @param {Object} rootRect The bounding rect of the root after being

// Ignore Windows 7 IE11 "Unspecified error"
// https://github.com/WICG/IntersectionObserver/pull/205
// https://github.com/w3c/IntersectionObserver/pull/205
}

@@ -656,0 +649,0 @@

{
"name": "intersection-observer",
"version": "0.4.2",
"version": "0.4.3",
"description": "A polyfill for IntersectionObserver",

@@ -8,3 +8,3 @@ "main": "intersection-observer",

"type": "git",
"url": "git@github.com:WICG/IntersectionObserver.git"
"url": "git@github.com:w3c/IntersectionObserver.git"
},

@@ -20,6 +20,6 @@ "keywords": [

},
"license": "Apache-2.0",
"license": "W3C-20150513",
"bugs": {
"url": "https://github.com/WICG/IntersectionObserver/issues"
"url": "https://github.com/w3c/IntersectionObserver/issues"
}
}
# `IntersectionObserver` polyfill
This library polyfills the native [`IntersectionObserver`](http://wicg.github.io/IntersectionObserver/) API in unsupporting browsers. See the [API documentation](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) for usage information.
This library polyfills the native [`IntersectionObserver`](http://w3c.github.io/IntersectionObserver/) API in unsupporting browsers. See the [API documentation](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) for usage information.

@@ -12,3 +12,3 @@ - [Installation](#installation)

You can install the polyfill via npm or by downloading a [zip](https://github.com/WICG/IntersectionObserver/archive/gh-pages.zip) of this repository:
You can install the polyfill via npm or by downloading a [zip](https://github.com/w3c/IntersectionObserver/archive/gh-pages.zip) of this repository:

@@ -15,0 +15,0 @@ ```sh

Sorry, the diff of this file is not supported yet