intersection-observer
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -9,8 +9,11 @@ /** | ||
*/ | ||
(function(window, document) { | ||
(function() { | ||
'use strict'; | ||
// Exit early if we're not running in a browser. | ||
if (typeof window !== 'object') { | ||
return; | ||
} | ||
// Exits early if all IntersectionObserver and IntersectionObserverEntry | ||
// Exit early if all IntersectionObserver and IntersectionObserverEntry | ||
// features are natively supported. | ||
@@ -36,2 +39,8 @@ if ('IntersectionObserver' in window && | ||
/** | ||
* A local reference to the document. | ||
*/ | ||
var document = window.document; | ||
/** | ||
* An IntersectionObserver registry. This registry exists to hold a strong | ||
@@ -734,2 +743,2 @@ * reference to IntersectionObserver instances currently observing a target | ||
}(window, document)); | ||
}()); |
{ | ||
"name": "intersection-observer", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "A polyfill for IntersectionObserver", | ||
@@ -5,0 +5,0 @@ "main": "intersection-observer", |
69318
1572